<!DOCTYPE html>
<!-- saved from url=(0053)https://blog.csdn.net/hwx865/article/details/90287715 -->
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    <link rel="canonical" href="https://blog.csdn.net/hwx865/article/details/90287715">
    
    <meta name="renderer" content="webkit">
    <meta name="force-rendering" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="report" content="{&quot;pid&quot;: &quot;blog&quot;, &quot;spm&quot;:&quot;1001.2101&quot;}">
    <meta name="referrer" content="always">
    <meta http-equiv="Cache-Control" content="no-siteapp"><link rel="alternate" media="handheld" href="https://blog.csdn.net/hwx865/article/details/90287715#">
    <meta name="shenma-site-verification" content="5a59773ab8077d4a62bf469ab966a63b_1497598848">
    <meta name="applicable-device" content="pc">
    <link href="https://g.csdnimg.cn/static/logo/favicon32.ico" rel="shortcut icon" type="image/x-icon">
    <title>(54条消息) Ubuntu 安装和使用MySQL_奉君逍遥的博客-CSDN博客_ubuntu安装mysql</title>
    <script type="text/javascript" async="" src="./Ubuntu 安装和使用MySQL_files/auto_dup"></script><script type="text/javascript" charset="utf-8" async="" src="./Ubuntu 安装和使用MySQL_files/apiaccept"></script><script type="text/javascript" async="" src="./Ubuntu 安装和使用MySQL_files/trackad.js"></script><script src="./Ubuntu 安装和使用MySQL_files/push.js"></script><script type="text/javascript" async="" src="./Ubuntu 安装和使用MySQL_files/saved_resource(1)"></script><script src="./Ubuntu 安装和使用MySQL_files/hm.js"></script><script src="./Ubuntu 安装和使用MySQL_files/push(1).js" id="ttzz"></script><script>
      (function(){ 
        var el = document.createElement("script"); 
        el.src = "https://s3a.pstatp.com/toutiao/push.js?1abfa13dfe74d72d41d83c86d240de427e7cac50c51ead53b2e79d40c7952a23ed7716d05b4a0f683a653eab3e214672511de2457e74e99286eb2c33f4428830"; 
        el.id = "ttzz"; 
        var s = document.getElementsByTagName("script")[0]; 
        s.parentNode.insertBefore(el, s);
      })(window)
    </script>
        <meta name="keywords" content="ubuntu安装mysql">
        <meta name="csdn-baidu-search" content="{&quot;autorun&quot;:true,&quot;install&quot;:true,&quot;keyword&quot;:&quot;ubuntu安装mysql&quot;}">
    <meta name="description" content="目录前言安装MySQL更新列表安装MySQL服务器安装MySQL客户端配置MySQL测试MySQLMySQL数据库基本使用启动MySQL数据库服务重启MySQL数据库服务停止MySQL数据库服务查看MySQL运行状态设置MySQL服务开机自启动停止MySQL服务开机自启动MySQL的配置文件配置MySQL远程登录systemctl...">
    <script src="./Ubuntu 安装和使用MySQL_files/blog.js" type="text/javascript"></script>
        <link rel="stylesheet" type="text/css" href="./Ubuntu 安装和使用MySQL_files/detail_enter-dbcfbb1ed8.min.css">
    <script type="application/ld+json">{"@context":"https://ziyuan.baidu.com/contexts/cambrian.jsonld","@id":"https://blog.csdn.net/hwx865/article/details/90287715","appid":"1638831770136827","pubDate":"2019-05-17T15:53:51","title":"Ubuntu 安装和使用MySQL_奉君逍遥的博客-CSDN博客_ubuntu安装mysql","upDate":"2019-05-17T15:53:51"}</script>
        <link rel="stylesheet" type="text/css" href="./Ubuntu 安装和使用MySQL_files/skin3-template-762f7595fd.min.css">
    <script src="./Ubuntu 安装和使用MySQL_files/jquery-1.9.1.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        var isCorporate = false;//注释删除enterprise
        var username =  "hwx865";
        var skinImg = "white";
        var blog_address = "https://blog.csdn.net/hwx865";
        var currentUserName = "u013454589";
        var isOwner = false;
        var loginUrl = "http://passport.csdn.net/account/login?from=https://blog.csdn.net/hwx865/article/details/90287715";
        var blogUrl = "https://blog.csdn.net/";
        var avatar = "https://profile.csdnimg.cn/9/0/A/3_hwx865";
        var articleTitle = "Ubuntu 安装和使用MySQL";
        var articleDesc = "目录前言安装MySQL更新列表安装MySQL服务器安装MySQL客户端配置MySQL测试MySQLMySQL数据库基本使用启动MySQL数据库服务重启MySQL数据库服务停止MySQL数据库服务查看MySQL运行状态设置MySQL服务开机自启动停止MySQL服务开机自启动MySQL的配置文件配置MySQL远程登录systemctl...";
        var articleTitles = "Ubuntu 安装和使用MySQL_奉君逍遥的博客-CSDN博客_ubuntu安装mysql";
        var nickName = "奉君逍遥";
        var articleDetailUrl = "https://blog.csdn.net/hwx865/article/details/90287715";
        if(window.location.host.split('.').length == 3) {
            blog_address = blogUrl + username;
        }
        var skinStatus = "White";
        var blogStaticHost = "https://csdnimg.cn/release/blogv2/"
        var mallTestStyle = "control"
    </script>
    <script src="./Ubuntu 安装和使用MySQL_files/saved_resource(2)" type="text/javascript"></script>
    <script src="./Ubuntu 安装和使用MySQL_files/report.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="./Ubuntu 安装和使用MySQL_files/sandalstrap.min.css">
    <style>
        .MathJax, .MathJax_Message, .MathJax_Preview{
            display: none
        }
    </style>
    <script src="./Ubuntu 安装和使用MySQL_files/ds.js"></script>
<link rel="stylesheet" type="text/css" href="./Ubuntu 安装和使用MySQL_files/csdn-toolbar-default.css"><script type="text/javascript" src="./Ubuntu 安装和使用MySQL_files/csdn-notification.js"></script><link rel="stylesheet" type="text/css" href="./Ubuntu 安装和使用MySQL_files/user-login.css"><link rel="stylesheet" type="text/css" href="./Ubuntu 安装和使用MySQL_files/collection-box.css"><link rel="stylesheet" type="text/css" href="./Ubuntu 安装和使用MySQL_files/user-tooltip.css"><link rel="stylesheet" type="text/css" href="./Ubuntu 安装和使用MySQL_files/user-medal.css"><script type="text/javascript" src="./Ubuntu 安装和使用MySQL_files/html2canvas.min.js"></script><style type="text/css">.hljs-ln{border-collapse:collapse}            .hljs-ln td{padding:0}            .hljs-ln-n{text-align: right;padding-right: 8px;}            .hljs-ln-n:before{content:attr(data-line-number)}</style><style type="text/css">pre{position: relative}pre:hover .code-full-screen{display:none !important;}.code-full-screen{display: none !important;position: absolute;right: 4px;top: 3px;width: 24px !important;height: 24px !important;margin: 4px !important;}pre:hover .hljs-button{display: block}.hljs-button{display: none;position: absolute;right: 4px;top: 4px;font-size: 12px;color: #ffffff;background-color: #9999AA;padding: 2px 8px;margin: 8px;border-radius: 4px;cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.05);}.hljs-button:after{content: attr(data-title)}code .hljs-button{margin: 2px 8px;}</style><link rel="stylesheet" type="text/css" href="./Ubuntu 安装和使用MySQL_files/user-accusation.css"><link rel="stylesheet" type="text/css" href="./Ubuntu 安装和使用MySQL_files/user-ordertip.css"><link rel="stylesheet" type="text/css" href="./Ubuntu 安装和使用MySQL_files/order-payment.css"><link rel="stylesheet" type="text/css" href="./Ubuntu 安装和使用MySQL_files/side-toolbar.css"><link rel="stylesheet" type="text/css" href="./Ubuntu 安装和使用MySQL_files/csdn-footer.css"><style type="text/css">.MathJax_Hover_Frame {border-radius: .25em; -webkit-border-radius: .25em; -moz-border-radius: .25em; -khtml-border-radius: .25em; box-shadow: 0px 0px 15px #83A; -webkit-box-shadow: 0px 0px 15px #83A; -moz-box-shadow: 0px 0px 15px #83A; -khtml-box-shadow: 0px 0px 15px #83A; border: 1px solid #A6D ! important; display: inline-block; position: absolute}
.MathJax_Menu_Button .MathJax_Hover_Arrow {position: absolute; cursor: pointer; display: inline-block; border: 2px solid #AAA; border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px; -khtml-border-radius: 4px; font-family: 'Courier New',Courier; font-size: 9px; color: #F0F0F0}
.MathJax_Menu_Button .MathJax_Hover_Arrow span {display: block; background-color: #AAA; border: 1px solid; border-radius: 3px; line-height: 0; padding: 4px}
.MathJax_Hover_Arrow:hover {color: white!important; border: 2px solid #CCC!important}
.MathJax_Hover_Arrow:hover span {background-color: #CCC!important}
</style><style type="text/css">#MathJax_About {position: fixed; left: 50%; width: auto; text-align: center; border: 3px outset; padding: 1em 2em; background-color: #DDDDDD; color: black; cursor: default; font-family: message-box; font-size: 120%; font-style: normal; text-indent: 0; text-transform: none; line-height: normal; letter-spacing: normal; word-spacing: normal; word-wrap: normal; white-space: nowrap; float: none; z-index: 201; border-radius: 15px; -webkit-border-radius: 15px; -moz-border-radius: 15px; -khtml-border-radius: 15px; box-shadow: 0px 10px 20px #808080; -webkit-box-shadow: 0px 10px 20px #808080; -moz-box-shadow: 0px 10px 20px #808080; -khtml-box-shadow: 0px 10px 20px #808080; filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=2, OffY=2, Color='gray', Positive='true')}
#MathJax_About.MathJax_MousePost {outline: none}
.MathJax_Menu {position: absolute; background-color: white; color: black; width: auto; padding: 5px 0px; border: 1px solid #CCCCCC; margin: 0; cursor: default; font: menu; text-align: left; text-indent: 0; text-transform: none; line-height: normal; letter-spacing: normal; word-spacing: normal; word-wrap: normal; white-space: nowrap; float: none; z-index: 201; border-radius: 5px; -webkit-border-radius: 5px; -moz-border-radius: 5px; -khtml-border-radius: 5px; box-shadow: 0px 10px 20px #808080; -webkit-box-shadow: 0px 10px 20px #808080; -moz-box-shadow: 0px 10px 20px #808080; -khtml-box-shadow: 0px 10px 20px #808080; filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=2, OffY=2, Color='gray', Positive='true')}
.MathJax_MenuItem {padding: 1px 2em; background: transparent}
.MathJax_MenuArrow {position: absolute; right: .5em; padding-top: .25em; color: #666666; font-size: .75em}
.MathJax_MenuActive .MathJax_MenuArrow {color: white}
.MathJax_MenuArrow.RTL {left: .5em; right: auto}
.MathJax_MenuCheck {position: absolute; left: .7em}
.MathJax_MenuCheck.RTL {right: .7em; left: auto}
.MathJax_MenuRadioCheck {position: absolute; left: .7em}
.MathJax_MenuRadioCheck.RTL {right: .7em; left: auto}
.MathJax_MenuLabel {padding: 1px 2em 3px 1.33em; font-style: italic}
.MathJax_MenuRule {border-top: 1px solid #DDDDDD; margin: 4px 3px}
.MathJax_MenuDisabled {color: GrayText}
.MathJax_MenuActive {background-color: #606872; color: white}
.MathJax_MenuDisabled:focus, .MathJax_MenuLabel:focus {background-color: #E8E8E8}
.MathJax_ContextMenu:focus {outline: none}
.MathJax_ContextMenu .MathJax_MenuItem:focus {outline: none}
#MathJax_AboutClose {top: .2em; right: .2em}
.MathJax_Menu .MathJax_MenuClose {top: -10px; left: -10px}
.MathJax_MenuClose {position: absolute; cursor: pointer; display: inline-block; border: 2px solid #AAA; border-radius: 18px; -webkit-border-radius: 18px; -moz-border-radius: 18px; -khtml-border-radius: 18px; font-family: 'Courier New',Courier; font-size: 24px; color: #F0F0F0}
.MathJax_MenuClose span {display: block; background-color: #AAA; border: 1.5px solid; border-radius: 18px; -webkit-border-radius: 18px; -moz-border-radius: 18px; -khtml-border-radius: 18px; line-height: 0; padding: 8px 0 6px}
.MathJax_MenuClose:hover {color: white!important; border: 2px solid #CCC!important}
.MathJax_MenuClose:hover span {background-color: #CCC!important}
.MathJax_MenuClose:hover:focus {outline: none}
</style><style type="text/css">.MathJax_Preview .MJXf-math {color: inherit!important}
</style><style type="text/css">.MJX_Assistive_MathML {position: absolute!important; top: 0; left: 0; clip: rect(1px, 1px, 1px, 1px); padding: 1px 0 0 0!important; border: 0!important; height: 1px!important; width: 1px!important; overflow: hidden!important; display: block!important; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none}
.MJX_Assistive_MathML.MJX_Assistive_MathML_Block {width: 100%!important}
</style><style type="text/css">#MathJax_Zoom {position: absolute; background-color: #F0F0F0; overflow: auto; display: block; z-index: 301; padding: .5em; border: 1px solid black; margin: 0; font-weight: normal; font-style: normal; text-align: left; text-indent: 0; text-transform: none; line-height: normal; letter-spacing: normal; word-spacing: normal; word-wrap: normal; white-space: nowrap; float: none; -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; box-shadow: 5px 5px 15px #AAAAAA; -webkit-box-shadow: 5px 5px 15px #AAAAAA; -moz-box-shadow: 5px 5px 15px #AAAAAA; -khtml-box-shadow: 5px 5px 15px #AAAAAA; filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=2, OffY=2, Color='gray', Positive='true')}
#MathJax_ZoomOverlay {position: absolute; left: 0; top: 0; z-index: 300; display: inline-block; width: 100%; height: 100%; border: 0; padding: 0; margin: 0; background-color: white; opacity: 0; filter: alpha(opacity=0)}
#MathJax_ZoomFrame {position: relative; display: inline-block; height: 0; width: 0}
#MathJax_ZoomEventTrap {position: absolute; left: 0; top: 0; z-index: 302; display: inline-block; border: 0; padding: 0; margin: 0; background-color: white; opacity: 0; filter: alpha(opacity=0)}
</style><style type="text/css">.MathJax_Preview {color: #888}
#MathJax_Message {position: fixed; left: 1em; bottom: 1.5em; background-color: #E6E6E6; border: 1px solid #959595; margin: 0px; padding: 2px 8px; z-index: 102; color: black; font-size: 80%; width: auto; white-space: nowrap}
#MathJax_MSIE_Frame {position: absolute; top: 0; left: 0; width: 0px; z-index: 101; border: 0px; margin: 0px; padding: 0px}
.MathJax_Error {color: #CC0000; font-style: italic}
</style><style type="text/css">.MJXp-script {font-size: .8em}
.MJXp-right {-webkit-transform-origin: right; -moz-transform-origin: right; -ms-transform-origin: right; -o-transform-origin: right; transform-origin: right}
.MJXp-bold {font-weight: bold}
.MJXp-italic {font-style: italic}
.MJXp-scr {font-family: MathJax_Script,'Times New Roman',Times,STIXGeneral,serif}
.MJXp-frak {font-family: MathJax_Fraktur,'Times New Roman',Times,STIXGeneral,serif}
.MJXp-sf {font-family: MathJax_SansSerif,'Times New Roman',Times,STIXGeneral,serif}
.MJXp-cal {font-family: MathJax_Caligraphic,'Times New Roman',Times,STIXGeneral,serif}
.MJXp-mono {font-family: MathJax_Typewriter,'Times New Roman',Times,STIXGeneral,serif}
.MJXp-largeop {font-size: 150%}
.MJXp-largeop.MJXp-int {vertical-align: -.2em}
.MJXp-math {display: inline-block; line-height: 1.2; text-indent: 0; font-family: 'Times New Roman',Times,STIXGeneral,serif; white-space: nowrap; border-collapse: collapse}
.MJXp-display {display: block; text-align: center; margin: 1em 0}
.MJXp-math span {display: inline-block}
.MJXp-box {display: block!important; text-align: center}
.MJXp-box:after {content: " "}
.MJXp-rule {display: block!important; margin-top: .1em}
.MJXp-char {display: block!important}
.MJXp-mo {margin: 0 .15em}
.MJXp-mfrac {margin: 0 .125em; vertical-align: .25em}
.MJXp-denom {display: inline-table!important; width: 100%}
.MJXp-denom > * {display: table-row!important}
.MJXp-surd {vertical-align: top}
.MJXp-surd > * {display: block!important}
.MJXp-script-box > *  {display: table!important; height: 50%}
.MJXp-script-box > * > * {display: table-cell!important; vertical-align: top}
.MJXp-script-box > *:last-child > * {vertical-align: bottom}
.MJXp-script-box > * > * > * {display: block!important}
.MJXp-mphantom {visibility: hidden}
.MJXp-munderover {display: inline-table!important}
.MJXp-over {display: inline-block!important; text-align: center}
.MJXp-over > * {display: block!important}
.MJXp-munderover > * {display: table-row!important}
.MJXp-mtable {vertical-align: .25em; margin: 0 .125em}
.MJXp-mtable > * {display: inline-table!important; vertical-align: middle}
.MJXp-mtr {display: table-row!important}
.MJXp-mtd {display: table-cell!important; text-align: center; padding: .5em 0 0 .5em}
.MJXp-mtr > .MJXp-mtd:first-child {padding-left: 0}
.MJXp-mtr:first-child > .MJXp-mtd {padding-top: 0}
.MJXp-mlabeledtr {display: table-row!important}
.MJXp-mlabeledtr > .MJXp-mtd:first-child {padding-left: 0}
.MJXp-mlabeledtr:first-child > .MJXp-mtd {padding-top: 0}
.MJXp-merror {background-color: #FFFF88; color: #CC0000; border: 1px solid #CC0000; padding: 1px 3px; font-style: normal; font-size: 90%}
.MJXp-scale0 {-webkit-transform: scaleX(.0); -moz-transform: scaleX(.0); -ms-transform: scaleX(.0); -o-transform: scaleX(.0); transform: scaleX(.0)}
.MJXp-scale1 {-webkit-transform: scaleX(.1); -moz-transform: scaleX(.1); -ms-transform: scaleX(.1); -o-transform: scaleX(.1); transform: scaleX(.1)}
.MJXp-scale2 {-webkit-transform: scaleX(.2); -moz-transform: scaleX(.2); -ms-transform: scaleX(.2); -o-transform: scaleX(.2); transform: scaleX(.2)}
.MJXp-scale3 {-webkit-transform: scaleX(.3); -moz-transform: scaleX(.3); -ms-transform: scaleX(.3); -o-transform: scaleX(.3); transform: scaleX(.3)}
.MJXp-scale4 {-webkit-transform: scaleX(.4); -moz-transform: scaleX(.4); -ms-transform: scaleX(.4); -o-transform: scaleX(.4); transform: scaleX(.4)}
.MJXp-scale5 {-webkit-transform: scaleX(.5); -moz-transform: scaleX(.5); -ms-transform: scaleX(.5); -o-transform: scaleX(.5); transform: scaleX(.5)}
.MJXp-scale6 {-webkit-transform: scaleX(.6); -moz-transform: scaleX(.6); -ms-transform: scaleX(.6); -o-transform: scaleX(.6); transform: scaleX(.6)}
.MJXp-scale7 {-webkit-transform: scaleX(.7); -moz-transform: scaleX(.7); -ms-transform: scaleX(.7); -o-transform: scaleX(.7); transform: scaleX(.7)}
.MJXp-scale8 {-webkit-transform: scaleX(.8); -moz-transform: scaleX(.8); -ms-transform: scaleX(.8); -o-transform: scaleX(.8); transform: scaleX(.8)}
.MJXp-scale9 {-webkit-transform: scaleX(.9); -moz-transform: scaleX(.9); -ms-transform: scaleX(.9); -o-transform: scaleX(.9); transform: scaleX(.9)}
.MathJax_PHTML .noError {vertical-align: ; font-size: 90%; text-align: left; color: black; padding: 1px 3px; border: 1px solid}
</style></head>
  <body class="nodata " style="overflow: auto;"><div id="MathJax_Message" style="display: none;"></div><div id="csdn-toolbar" style="position: fixed; min-width: 100%; width: max-content; top: 0px; left: 0px; z-index: 1993;"><div class="toolbar-advert">
            <a href="https://kunyu.csdn.net/?p=536&amp;spm=3001.5152&amp;a=1016260&amp;c=439675&amp;k=&amp;d=1&amp;t=3&amp;dest=https%3A%2F%2F1024.csdn.net%2F%3Futm_medium%3Dad.536&amp;timestamp=1666589419632&amp;signature=c7b872db90097415f83e9bc69491a0f5fe92583d" target="_blank" style="background: #0e101a;" class="toolbar-advert-default"><div style="width:100%; height:100%; background-image: url(https://img-operation.csdnimg.cn/csdn/silkroad/img/1666410203345.png); background-size: auto 80px;background-repeat: no-repeat; background-position: center center;"></div>
              
            </a>
            <span class="toolbar-adver-btn">关闭</span>
            <img style="width:0;height:0;display:none;" src="./Ubuntu 安装和使用MySQL_files/1.png">
          </div>
                    <div class="toolbar-inside">
                      <div class="toolbar-container">
                        <div class="toolbar-container-left">
                          <div class="toolbar-logo toolbar-subMenu-box csdn-toolbar-fl"><a data-report-click="{&quot;spm&quot;:&quot;3001.4476&quot;}" data-report-query="spm=3001.4476" href="https://www.csdn.net/"><img title="CSDN首页" src="./Ubuntu 安装和使用MySQL_files/20201124032511.png"></a>
                    </div>
                          <ul class="toolbar-menus csdn-toolbar-fl"><li class="active " title="阅读深度、前沿文章">
                                <a data-report-click="{&quot;mod&quot;:&quot;popu_336&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/&quot;,&quot;spm&quot;:&quot;3001.4477&quot;}" data-report-query="spm=3001.4477" href="https://blog.csdn.net/">
                                  博客
                                  
                                  
                                </a>
                                
                                
                              </li><li class="" title="高价值源码课程分享">
                                <a data-report-click="{&quot;mod&quot;:&quot;popu_336&quot;,&quot;dest&quot;:&quot;https://download.csdn.net/&quot;,&quot;spm&quot;:&quot;3001.6907&quot;}" data-report-query="spm=3001.6907" href="https://download.csdn.net/">
                                  下载
                                  
                                  
                                </a>
                                
                                
                              </li><li class="" title="系统学习·问答·比赛">
                                <a data-report-click="{&quot;mod&quot;:&quot;popu_336&quot;,&quot;dest&quot;:&quot;https://edu.csdn.net/&quot;,&quot;spm&quot;:&quot;3001.4482&quot;}" data-report-query="spm=3001.4482" href="https://edu.csdn.net/">
                                  学习
                                  
                                  
                                </a>
                                
                                
                              </li><li class="" title="找到志同道合的伙伴">
                                <a data-report-click="{&quot;mod&quot;:&quot;popu_336&quot;,&quot;dest&quot;:&quot;https://bbs.csdn.net/&quot;,&quot;spm&quot;:&quot;3001.6068&quot;}" data-report-query="spm=3001.6068" href="https://bbs.csdn.net/">
                                  社区
                                  
                                  
                                </a>
                                
                                
                              </li><li class="" title="开源代码托管">
                                <a data-report-click="{&quot;mod&quot;:&quot;&quot;,&quot;dest&quot;:&quot;https://gitcode.net/gitcode/1024opensource?utm_source=csdn_toolbar&quot;,&quot;spm&quot;:&quot;3001.6768&quot;}" data-report-query="spm=3001.6768" href="https://gitcode.net/gitcode/1024opensource?utm_source=csdn_toolbar">
                                  GitCode
                                  <img style="vertical-align: middle; width: 19px;margin-top: -4px;margin-left: -2px" "="" src="./Ubuntu 安装和使用MySQL_files/20220516045836.png">
                                  
                                </a>
                                
                                
                              </li><li class="" title="简单高效优惠的云服务">
                                <a data-report-click="{&quot;mod&quot;:&quot;popu_336&quot;,&quot;dest&quot;:&quot;https://bbs.csdn.net/&quot;,&quot;spm&quot;:&quot;3001.8290&quot;}" data-report-query="spm=3001.8290" href="https://dev-portal.csdn.net/welcome?utm_source=toolbar">
                                  云服务
                                  
                                  
                                </a>
                                
                                
                              </li><li class="" title="程序员的如意兵器">
                                <a data-report-click="{&quot;mod&quot;:&quot;popu_336&quot;,&quot;dest&quot;:&quot;https://devbit.csdn.net/&quot;,&quot;spm&quot;:&quot;3001.8967&quot;}" data-report-query="spm=3001.8967" href="https://devbit.csdn.net/?source=csdn_toolbar">
                                  猿如意
                                  
                                  
                                </a>
                                
                                
                              </li></ul>
                        </div>
                        <div class="toolbar-container-middle">
                        <div class="toolbar-search onlySearch"><div class="toolbar-search-container">
                    <span class="icon-fire" style="display: block;"></span>
                    <input id="toolbar-search-input" maxlength="2000" autocomplete="off" type="text" value="" placeholder="ubuntu安装mysql" style="text-indent: 32px;"><div class="gradient"></div>
                    <button id="toolbar-search-button"><i></i><span>搜索</span></button>
                    <input type="password" autocomplete="new-password" readonly="" disabled="true" style="display: none; position:absolute;left:-9999999px;width:0;height:0;">
                  </div></div></div>
                        <div class="toolbar-container-right">
                          <div class="toolbar-btns onlyUser"><div class="toolbar-btn toolbar-btn-login csdn-toolbar-fl toolbar-subMenu-box">
                      <a class="hasAvatar" data-report-click="{&quot;spm&quot;: &quot;3001.5343&quot;}" data-report-query="spm=3001.5343" href="https://blog.csdn.net/u013454589"><img src="./Ubuntu 安装和使用MySQL_files/2_u013454589"></a>
                      <div id="csdn-toolbar-profile" class="csdn-toolbar-plugin" style="display: none; opacity: 1;">
            <div class="csdn-profile-top">
              <a class="csdn-profile-avatar" data-report-click="{&quot;spm&quot;: &quot;3001.5343&quot;}" data-report-query="spm=3001.5343" href="https://blog.csdn.net/u013454589"><img src="./Ubuntu 安装和使用MySQL_files/0_u013454589"></a>
              <p class="csdn-profile-nickName">hexu1985</p>
              <a data-report-click="{&quot;spm&quot;: &quot;3001.5344&quot;}" data-report-query="spm=3001.5344" href="https://mall.csdn.net/vip" class="csdn-profile-no-vip"></a>
            </div>
            <div class="csdn-profile-mid">
              <a data-report-click="{&quot;spm&quot;: &quot;3001.5347&quot;}" data-report-query="spm=3001.5347" href="https://blog.csdn.net/u013454589?type=sub&amp;subType=fans"><i class="csdn-profile-fansCount">14</i>粉丝</a>
              <a data-report-click="{&quot;spm&quot;: &quot;3001.5348&quot;}" data-report-query="spm=3001.5348" href="https://blog.csdn.net/u013454589?type=sub"><i class="csdn-profile-followCount">9</i>关注</a>
              <a data-report-click="{&quot;spm&quot;: &quot;3001.5349&quot;}" data-report-query="spm=3001.5349" href="https://blog.csdn.net/u013454589"><i class="csdn-profile-likeCount">--</i>获赞</a>
            </div>
            <div class="csdn-profile-bottom">
              <ul class="csdn-border-bottom">
                <li class=""><a href="https://i.csdn.net/#/user-center/profile" data-report-click="{&quot;dest&quot;:&quot;https://i.csdn.net/#/user-center/profile&quot;,&quot;spm&quot;:&quot;3001.5111&quot;}" data-report-query="spm=3001.5111"><i class="csdn-profile-icon csdn-profile-icon-person"></i>个人中心</a></li><li class=""><a href="https://mp.csdn.net/mp_blog/manage/article?spm=1011.2124.3001.5298" data-report-click="{&quot;dest&quot;:&quot;https://mp.csdn.net/mp_blog/manage/article?spm=1011.2124.3001.5298&quot;,&quot;spm&quot;:&quot;3001.5448&quot;}" data-report-query="spm=3001.5448"><i class="csdn-profile-icon csdn-profile-icon-pages"></i>内容管理</a></li><li class=""><a href="https://edu.csdn.net/?utm_source=edu_txxl_mh" data-report-click="{&quot;dest&quot;:&quot;https://edu.csdn.net?utm_source=edu_txxl_mh&quot;,&quot;spm&quot;:&quot;3001.5350&quot;}" data-report-query="spm=3001.5350"><i class="csdn-profile-icon csdn-profile-icon-study"></i>我的学习</a></li><li class=""><a href="https://mall.csdn.net/myorder" data-report-click="{&quot;dest&quot;:&quot;https://mall.csdn.net/myorder&quot;,&quot;spm&quot;:&quot;3001.5137&quot;}" data-report-query="spm=3001.5137"><i class="csdn-profile-icon csdn-profile-icon-order"></i>我的订单</a></li><li class=""><a href="https://i.csdn.net/#/wallet/index" data-report-click="{&quot;dest&quot;:&quot;https://i.csdn.net/#/wallet/index&quot;,&quot;spm&quot;:&quot;3001.5136&quot;}" data-report-query="spm=3001.5136"><i class="csdn-profile-icon csdn-profile-icon-wallet"></i>我的钱包</a></li><li class=""><a href="https://dev-portal.csdn.net/welcome?utm_source=toolbar_user_profile" data-report-click="{&quot;dest&quot;:&quot;https://dev-portal.csdn.net/welcome?utm_source=toolbar_user_profile&quot;,&quot;spm&quot;:&quot;3001.7345&quot;}" data-report-query="spm=3001.7345"><i class="csdn-profile-icon csdn-profile-icon-API"></i>我的云服务</a></li><li class="pb-8 csdn-border-bottom"><a href="https://ac.csdn.net/user/myCert.html" data-report-click="{&quot;dest&quot;:&quot;https://ac.csdn.net/user/myCert.html&quot;,&quot;spm&quot;:&quot;3001.7346&quot;}" data-report-query="spm=3001.7346"><i class="csdn-profile-icon csdn-profile-icon-ac"></i>我的认证</a></li><li class="pt-8 pb-8 csdn-border-bottom"><a href="https://i.csdn.net/#/uc/reward" data-report-click="{&quot;dest&quot;:&quot;https://i.csdn.net/#/uc/reward&quot;,&quot;spm&quot;:&quot;3001.5351&quot;}" data-report-query="spm=3001.5351"><i class="csdn-profile-icon csdn-profile-icon-draw"></i>签到抽奖</a></li><li class="pt-8 csdn-profile-logout"><a href="javascript:;" data-report-click="{&quot;spm&quot;:&quot;3001.5139&quot;}" data-report-query="spm=3001.5139"><i class="csdn-profile-icon csdn-profile-icon-logout"></i>退出</a></li>
              </ul>
            </div>
          </div></div>
                    <div class="toolbar-btn toolbar-btn-vip csdn-toolbar-fl">
                      <a data-report-click="{&quot;mod&quot;:&quot;popu_336&quot;,&quot;dest&quot;:&quot;https://mall.csdn.net/vip&quot;,&quot;spm&quot;:&quot;3001.4496&quot;}" data-report-query="spm=3001.4496" href="https://mall.csdn.net/vip">会员中心 <img style="position: relative; vertical-align: middle; width: 14px; top: -2px; left: 0px;;display:inline-block" "="" src="./Ubuntu 安装和使用MySQL_files/20210918025138.gif"></a>
                      <div id="csdn-plugin-vip" style="background:url(https://img-home.csdnimg.cn/images/20210826055049.png) no-repeat center center; background-size: cover;" }="">
                        <div class="csdn-plugin-vip-header">
                            会员特权
                        </div>
                        <div class="csdn-plugin-vip-body">
                            <a href="https://mall.csdn.net/vip?utm_source=vip_hyzx_hytbcj#draw"><i class="csdn-plugin-vip-icon" style="background:url(https://img-home.csdnimg.cn/images/20220215105130.png);background-size: contain;"></i><br>抽豪礼</a><a href="https://mall.csdn.net/vip?utm_source=vip_pc_hybjt"><i class="csdn-plugin-vip-icon" style="background:url(https://img-home.csdnimg.cn/images/20210826043936.png);background-size: contain;"></i><br>领券中心</a><a href="https://mall.csdn.net/vip?utm_source=vip_hyzx_fc_xsjz"><i class="csdn-plugin-vip-icon" style="background:url(https://img-home.csdnimg.cn/images/20211115095959.png);background-size: contain;"></i><br>赠一年</a><a href="https://vip.csdn.net/welfarecenter?utm_source=vip_hyzx_hytblq#discount_center"><i class="csdn-plugin-vip-icon" style="background:url(https://img-home.csdnimg.cn/images/20210826043937.png);background-size: contain;"></i><br>会员购</a>
                        </div>
                        <div class="csdn-plugin-vip-footer">                
                            <a data-report-click="{&quot;spm&quot;: &quot;3001.6440&quot;}" data-report-query="spm=3001.6440" class="csdn-plugin-vip-footer-link" href="https://mall.csdn.net/vip">
                              领取限时优惠券，最高可减80元<i></i>
                            </a>
                            <a data-report-click="{&quot;spm&quot;: &quot;3001.6439&quot;}" data-report-query="spm=3001.6439" class="csdn-plugin-vip-footer-btn" href="https://mall.csdn.net/vip">
                              领券开通
                            </a>
                        </div>
                    </div></div>
                    <div class="toolbar-btn toolbar-btn-collect csdn-toolbar-fl">
                      <a data-report-click="{&quot;spm&quot;:&quot;3001.7480&quot;}" data-report-query="spm=3001.7480" href="https://i.csdn.net/#/user-center/collection-list?type=1">足迹</a>
                    </div>
                    <div class="toolbar-btn toolbar-btn-dynamic csdn-toolbar-fl toolbar-dynamic-box">
                      <a data-report-click="{&quot;spm&quot;:&quot;3001.4507&quot;}" data-report-query="spm=3001.4507" href="https://blink.csdn.net/">动态</a>
                      <div class="toolbar-dynamic-subMenu">
                        <a class="vote-item" data-report-click="{&quot;spm&quot;:&quot;3001.8379&quot;}" data-report-query="spm=3001.8379" href="https://blink.csdn.net/?source=vote">
                          <span class="pos-rel">投票<i style="display: inline;"></i></span>
                        </a>
                      </div>
                    </div>
                    <div class="toolbar-btn toolbar-btn-msg csdn-toolbar-fl">
                        <div class="toolbar-subMenu-box">
                          <a data-report-click="{&quot;spm&quot;:&quot;3001.4508&quot;}" data-report-query="spm=3001.4508" id="toolbar-remind" href="https://i.csdn.net/#/msg/index"><span class="pos-rel">消息<i class="toolbar-msg-count"></i></span></a>
                        <div class="toolbar-subMenu">
                          <a data-type="comment" href="https://i.csdn.net/#/msg/index"><span class="pos-rel">评论和@</span></a>
                          <a data-type="attention" href="https://i.csdn.net/#/msg/attention"><span class="pos-rel">新增粉丝</span></a>         
                          <a data-type="like" href="https://i.csdn.net/#/msg/like"><span class="pos-rel">赞和收藏<i></i></span></a>
                          <a data-type="chat" href="https://im.csdn.net/im/main.html"><span class="pos-rel">私信<i></i></span></a>
                          <a data-type="notice" href="https://i.csdn.net/#/msg/notice"><span class="pos-rel">系统通知</span></a>
                          <a href="https://i.csdn.net/#/msg/setting">消息设置</a>
                     </div></div>
                        <div class="toolbar-msg-box"></div>
                      </div>
                    
                      <div class="toolbar-btn toolbar-btn-dynamic csdn-toolbar-fl toolbar-mp-menubox">
                        <a title="创作中心" data-report-click="{&quot;dest&quot;:&quot;https://mp.csdn.net/&quot;,&quot;spm&quot;:&quot;3001.8539&quot;}" data-report-query="spm=3001.8539" href="https://mp.csdn.net/">
                          创作中心
                          <img src="./Ubuntu 安装和使用MySQL_files/20220627041202.png" class="icon-mp-menu">
                        </a>
                      </div>
                    
                    <div class="toolbar-btn toolbar-btn-write csdn-toolbar-fl toolbar-subMenu-box">
                    <a data-report-click="{&quot;spm&quot;:&quot;3001.4503&quot;}" data-report-query="spm=3001.4503" href="https://mp.csdn.net/edit"><i></i>发布<i></i></a>
        <div id="csdn-toolbar-write" class="csdn-toolbar-plugin" style="display: none;">
          <div class="csdn-toolbar-plugin-triangle"></div>
          <ul class="csdn-toolbar-write-box">
            <li class="csdn-toolbar-write-box-blog">
              <a href="https://mp.csdn.net/edit" target="_blank" data-report-click="{&quot;spm&quot;:&quot;3001.5352&quot;}" data-report-query="spm=3001.5352">
                <i class="csdn-toolbar-write-icon"></i>
                <span>写文章</span>
              </a>
            </li>
            <li class="csdn-toolbar-write-box-blink">
              <a href="https://blink.csdn.net/" target="_blank" data-report-click="{&quot;spm&quot;:&quot;3001.5353&quot;}" data-report-query="spm=3001.5353">
                <i class="csdn-toolbar-write-icon"></i>
                <span>发动态</span>
              </a>
            </li>
            <li class="csdn-toolbar-write-box-ask">
              <a href="https://ask.csdn.net/new?utm_source=p_toolbar" target="_blank" data-report-click="{&quot;spm&quot;:&quot;3001.5354&quot;}" data-report-query="spm=3001.5354">
                <i class="csdn-toolbar-write-icon"></i>
                <span>提问题</span>
              </a>
            </li>
            <li class="csdn-toolbar-write-box-upload">
              <a href="https://mp.csdn.net/mp_download/creation/uploadResources" target="_blank" data-report-click="{&quot;spm&quot;:&quot;3001.5355&quot;}" data-report-query="spm=3001.5355">
                <i class="csdn-toolbar-write-icon"></i>
                <span>传资源</span>
              </a>
            </li>
            <li class="csdn-toolbar-write-box-code">
              <a href="https://gitcode.net/explore" target="_blank" data-report-click="{&quot;spm&quot;:&quot;3001.5356&quot;}" data-report-query="spm=3001.5356">
                <i class="csdn-toolbar-write-icon"></i>
                <span>建项目</span>
              </a>
            </li>
          </ul>
        
        <div class="csdn-toolbar-write-activity">
          <div class="csdn-toolbar-write-activity-head"><span>创作活动</span><a href="https://mp.csdn.net/mp_blog/manage/creative?spm=1011.2124.3001.5311" target="_blank" data-report-click="{&quot;spm&quot;:&quot;3001.5358&quot;}" data-report-query="spm=3001.5358">更多<i></i></a></div>
          <ul>
          <li>
            <a href="https://marketing.csdn.net/p/54ae7333c25d6c766005ee3ae9f63e5e?utm_source=1104325580" target="_blank">#1024程序员节｜用代码，改变世界</a>
          </li>
        
          <li>
            <a href="https://mp.csdn.net/activity/newclock/" target="_blank">#【新人打卡】创作挑战赛</a>
          </li>
        
          <li>
            <a href="https://marketing.csdn.net/p/bb9f9e25975dba9f9b87f5272afded16" target="_blank">#14天阅读挑战赛</a>
          </li>
        </ul>
          <div class="toolbar-write-activity-more">
          </div>
        </div>
      </div>
      </div></div>
                        </div>
                      </div>
                    </div>
                  </div>
        <script>
            var toolbarSearchExt = '{"landingWord":["ubuntu安装mysql"],"queryWord":"","tag":["Ubuntu","MySQL","systemctl","MySQL创建用户与授权"],"title":"Ubuntu 安装和使用MySQL"}';
        </script>
    <script src="./Ubuntu 安装和使用MySQL_files/csdn-toolbar.js" type="text/javascript"></script>
    <script>
    (function(){
        var bp = document.createElement('script');
        var curProtocol = window.location.protocol.split(':')[0];
        if (curProtocol === 'https') {
            bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
        }
        else {
            bp.src = 'http://push.zhanzhang.baidu.com/push.js';
        }
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(bp, s);
    })();
    </script>
<link rel="stylesheet" href="./Ubuntu 安装和使用MySQL_files/blog_code-01256533b5.min.css">
<link rel="stylesheet" href="./Ubuntu 安装和使用MySQL_files/chart-3456820cac.css">

<script>
    var articleId = 90287715;
    var commentscount = 1;
    var curentUrl = "https://blog.csdn.net/hwx865/article/details/90287715";
    var myUrl = "https://my.csdn.net/";
    var highlight = ["systemctl","system","ubuntu","mysql","创建用户","ctl","用户","使用","创建","安装","授权","和","与"];//高亮数组
    var isRecommendModule = true;
    var isBaiduPre = true;
    var baiduCount = 2;
    var setBaiduJsCount = 10;
    var share_card_url = "https://app-blog.csdn.net/share?article_id=90287715&username=hwx865"
	var articleType = 1;
    var baiduKey = "ubuntu安装mysql";
    var userNewReport = true;
    var needInsertBaidu = true;
    var recommendRegularDomainArr = ["blog.csdn.net/.+/article/details/","download.csdn.net/download/","edu.csdn.net/course/detail/","ask.csdn.net/questions/","bbs.csdn.net/topics/","www.csdn.net/gather_.+/"]
    var codeStyle = "";
    var baiduSearchType = "baidulandingword";
     var sharData = "{\"hot\":[{\"id\":1,\"url\":\"https:\\/\\/img-blog.csdnimg.cn\\/a5f4260710904e538002a6ab337939b3.png\"},{\"id\":2,\"url\":\"https:\\/\\/img-blog.csdnimg.cn\\/188b37199a2c4b74b1d9ffc39e0d52de.png\"},{\"id\":3,\"url\":\"https:\\/\\/img-blog.csdnimg.cn\\/14ded358b631444581edd98a256bc5af.png\"},{\"id\":4,\"url\":\"https:\\/\\/img-blog.csdnimg.cn\\/1470f23a770444d986ad551b9c33c5be.png\"},{\"id\":5,\"url\":\"https:\\/\\/img-blog.csdnimg.cn\\/c329f5181dc74f6c9bd28c982bb9f91d.png\"},{\"id\":6,\"url\":\"https:\\/\\/img-blog.csdnimg.cn\\/ccd8a3305e81460f9c505c95b432a65f.png\"},{\"id\":7,\"url\":\"https:\\/\\/img-blog.csdnimg.cn\\/bc89d8283389440d97fc4d30e30f45e1.png\"},{\"id\":8,\"url\":\"https:\\/\\/img-blog.csdnimg.cn\\/452d485b4a654f5592390550d2445edf.png\"},{\"id\":9,\"url\":\"https:\\/\\/img-blog.csdnimg.cn\\/f8b9939db2ed474a8f43a643015fc8b7.png\"},{\"id\":10,\"url\":\"https:\\/\\/img-blog.csdnimg.cn\\/6de8864187ab4ed3b1db0856369c36ff.png\"},{\"id\":11,\"url\":\"https:\\/\\/img-blog.csdnimg.cn\\/673cc3470ff74072acba958dc0c46e2d.png\"},{\"id\":12,\"url\":\"https:\\/\\/img-blog.csdnimg.cn\\/930c119760ac4491804db80f9c6d4e3f.png\"},{\"id\":13,\"url\":\"https:\\/\\/img-blog.csdnimg.cn\\/15e6befb05a24233bc2b65e96aa8d972.png\"},{\"id\":14,\"url\":\"https:\\/\\/img-blog.csdnimg.cn\\/2075fd6822184b95a41e214de4daec13.png\"},{\"id\":15,\"url\":\"https:\\/\\/img-blog.csdnimg.cn\\/859b1552db244eb6891a809263a5c657.png\"},{\"id\":16,\"url\":\"https:\\/\\/img-blog.csdnimg.cn\\/0be2f920f1f74290a98921974a9613fd.png\"},{\"id\":17,\"url\":\"https:\\/\\/img-blog.csdnimg.cn\\/2e97e00b43f14afab494ea55ef3f4a6e.png\"},{\"id\":18,\"url\":\"https:\\/\\/img-blog.csdnimg.cn\\/ff4ab252f46e444686f5135d6ebbfec0.png\"},{\"id\":19,\"url\":\"https:\\/\\/img-blog.csdnimg.cn\\/ae029bbe99564e79911657912d36524f.png\"},{\"id\":20,\"url\":\"https:\\/\\/img-blog.csdnimg.cn\\/b3ece39963de440388728e9e7b9bf427.png\"},{\"id\":21,\"url\":\"https:\\/\\/img-blog.csdnimg.cn\\/6f14651a99ba486e926d63b6fa692997.png\"},{\"id\":22,\"url\":\"https:\\/\\/img-blog.csdnimg.cn\\/83ceddf050084875a341e32dcceca721.png\"},{\"id\":23,\"url\":\"https:\\/\\/img-blog.csdnimg.cn\\/b90368b8fd5d4c6c8c79a707d877cf7c.png\"},{\"id\":24,\"url\":\"https:\\/\\/img-blog.csdnimg.cn\\/aeffae14ecf14e079b2616528c9a393b.png\"},{\"id\":25,\"url\":\"https:\\/\\/img-blog.csdnimg.cn\\/c5a06b5a13d44d16bed868fc3384897a.png\"},{\"id\":26,\"url\":\"https:\\/\\/img-blog.csdnimg.cn\\/08b697658b844b318cea3b119e9541ef.png\"},{\"id\":27,\"url\":\"https:\\/\\/img-blog.csdnimg.cn\\/68ccb0b8d09346ac961d2b5c1a8c77bf.png\"},{\"id\":28,\"url\":\"https:\\/\\/img-blog.csdnimg.cn\\/a2227a247e37418cbe0ea972ba6a859b.png\"},{\"id\":29,\"url\":\"https:\\/\\/img-blog.csdnimg.cn\\/3a42825fede748f9993e5bb844ad350d.png\"},{\"id\":30,\"url\":\"https:\\/\\/img-blog.csdnimg.cn\\/8882abc1dd484224b636966ea38555c3.png\"}],\"vip\":[{\"id\":1,\"vipUrl\":\"https:\\/\\/img-home.csdnimg.cn\\/images\\/20220920101150.png\",\"url\":\"https:\\/\\/img-home.csdnimg.cn\\/images\\/20220920101154.png\"},{\"id\":2,\"vipUrl\":\"https:\\/\\/img-home.csdnimg.cn\\/images\\/20220920101204.png\",\"url\":\"https:\\/\\/img-home.csdnimg.cn\\/images\\/20220920101208.png\"},{\"id\":3,\"vipUrl\":\"https:\\/\\/img-home.csdnimg.cn\\/images\\/20220920101211.png\",\"url\":\"https:\\/\\/img-home.csdnimg.cn\\/images\\/20220920101215.png\"},{\"id\":4,\"vipUrl\":\"https:\\/\\/img-home.csdnimg.cn\\/images\\/20220920101218.png\",\"url\":\"https:\\/\\/img-home.csdnimg.cn\\/images\\/20220920101220.png\"},{\"id\":5,\"vipUrl\":\"https:\\/\\/img-home.csdnimg.cn\\/images\\/20220920101223.png\",\"url\":\"https:\\/\\/img-home.csdnimg.cn\\/images\\/20220920101226.png\"},{\"id\":6,\"vipUrl\":\"https:\\/\\/img-home.csdnimg.cn\\/images\\/20220922100635.png\",\"url\":\"https:\\/\\/img-home.csdnimg.cn\\/images\\/20220922100639.png\"},{\"id\":7,\"vipUrl\":\"https:\\/\\/img-home.csdnimg.cn\\/images\\/20220922100642.png\",\"url\":\"https:\\/\\/img-home.csdnimg.cn\\/images\\/20220922100644.png\"},{\"id\":8,\"vipUrl\":\"https:\\/\\/img-home.csdnimg.cn\\/images\\/20220922100647.png\",\"url\":\"https:\\/\\/img-home.csdnimg.cn\\/images\\/20220922100649.png\"},{\"id\":9,\"vipUrl\":\"https:\\/\\/img-home.csdnimg.cn\\/images\\/20220922100652.png\",\"url\":\"https:\\/\\/img-home.csdnimg.cn\\/images\\/20220922100655.png\"}],\"map\":{\"hot\":\"热门\",\"vip\":\"VIP\"}}";
    
    var canRead = true;
    var blogMoveHomeArticle = false;
    var showPcWindowAd = false;
    var showHeadWord = true;
    var showSearchText = "";
    var linkPage = true;
    var articleSource = 1;
    var articleReport = '{"pid": "blog", "spm":"1001.2101"}';
    var isShowToQuestion = false;
    var baiduSearchChannel = 'pc_relevant'
    var baiduSearchIdentification = '.pc_relevant_3mothn_strategy_and_data_recovery'
    var distRequestId = '1666667753573_04418'
    var initRewardObject = {
        giver: "u013454589",
        anchor: "hwx865",
        articleId: "90287715",
        sign: "15215bf749c77216d13d84788c66fa65",
    }
    var isLikeStatus = false;
    var isUnLikeStatus = false;
    var studyLearnWord = "";
    var isCurrentUserVip = false;
    var testNewStyle = "oldStyle"
    var contentViewsHeight = 0;
    var contentViewsCount = 0;
    var contentViewsCountLimit = 5;
    var isShowConcision = true
    var isCookieConcision = false
    var isHasDirectoryModel = false
    var isShowSideModel = false
    var isShowDirectoryModel = true
    function getCookieConcision(sName){
        var allCookie = document.cookie.split("; ");
        for (var i=0; i < allCookie.length; i++){
            var aCrumb = allCookie[i].split("=");
            if (sName == aCrumb[0])
                return aCrumb[1];
        }
        return null;
    }
    if (getCookieConcision('blog_details_concision') && getCookieConcision('blog_details_concision') == 0){
        isCookieConcision = true
        isShowSideModel = true
        isShowDirectoryModel = false
    }
</script>
<div class="main_father clearfix d-flex justify-content-center" style="height:100%;"> 
    <div class="container clearfix" id="mainBox">
        <script>
        if(!isCookieConcision){
            $('.main_father').removeClass('mainfather-concision')
            $('.main_father .container').removeClass('container-concision')
        }
        </script>
        <main>
<script type="text/javascript">
    function getQueryString(name) {   
      var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象  
      var r = window.location.search.substr(1).match(reg);  //匹配目标参数
      if( r != null ) return decodeURIComponent( r[2] ); return '';   
    }
    function stripscript(s){ 
      var pattern = new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~！@#￥……&*（）——|{}【】‘；：”“'。，、？%]") 
      var rs = ""; 
      for (var i = 0; i < s.length; i++) { 
        rs = rs+s.substr(i, 1).replace(pattern, ''); 
      } 
      return rs; 
    }
    var blogHotWords = stripscript(getQueryString('utm_term')).length > 1 ? stripscript(getQueryString('utm_term')) : ''
</script>
<div class="blog-content-box">
        <div class="article-header-box">
        <div class="article-header">
            <div class="article-title-box">
                <h1 class="title-article" id="articleContentId">Ubuntu 安装和使用MySQL</h1>
            </div>
            <div class="article-info-box">
                <div class="article-bar-top">
                    <img class="article-type-img" src="./Ubuntu 安装和使用MySQL_files/original.png" alt="">
                    <div class="bar-content">
                    <a class="follow-nickName " href="https://blog.csdn.net/hwx865" target="_blank" rel="noopener">奉君逍遥</a>
                    <img class="article-time-img article-heard-img" src="./Ubuntu 安装和使用MySQL_files/newUpTime2.png" alt="">
                    <span class="time">已于&nbsp;2022-10-09 10:51:47&nbsp;修改</span>
                    <img class="article-read-img article-heard-img" src="./Ubuntu 安装和使用MySQL_files/articleReadEyes2.png" alt="">
                    <span class="read-count">5107</span>
                    <a id="blog_detail_zk_collection" class="un-collection" data-report-click="{&quot;mod&quot;:&quot;popu_823&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4232&quot;,&quot;ab&quot;:&quot;new&quot;}">
                        <img class="article-collect-img article-heard-img un-collect-status isdefault" style="display:inline-block" src="./Ubuntu 安装和使用MySQL_files/tobarCollect2.png" alt="">
                        <img class="article-collect-img article-heard-img collect-status isactive" style="display:none" src="./Ubuntu 安装和使用MySQL_files/tobarCollectionActive2.png" alt="">
                        <span class="name">收藏</span>
                        <span class="get-collection">
                            65
                        </span>
                    </a>
                    </div>
                </div>
                <div class="blog-tags-box">
                    <div class="tags-box artic-tag-box">
                            <span class="label">分类专栏：</span>
                                <a class="tag-link" href="https://blog.csdn.net/hwx865/category_8956701.html" target="_blank" rel="noopener">Linux</a>
                            <span class="label">文章标签：</span>
                                <a data-report-click="{&quot;mod&quot;:&quot;popu_626&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4223&quot;,&quot;strategy&quot;:&quot;Ubuntu&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;extra&quot;:&quot;{\&quot;searchword\&quot;:\&quot;Ubuntu\&quot;}&quot;}" class="tag-link" href="https://so.csdn.net/so/search/s.do?q=Ubuntu&amp;t=blog&amp;o=vip&amp;s=&amp;l=&amp;f=&amp;viparticle=" target="_blank" rel="noopener">Ubuntu</a>
                                <a data-report-click="{&quot;mod&quot;:&quot;popu_626&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4223&quot;,&quot;strategy&quot;:&quot;MySQL&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;extra&quot;:&quot;{\&quot;searchword\&quot;:\&quot;MySQL\&quot;}&quot;}" class="tag-link" href="https://so.csdn.net/so/search/s.do?q=MySQL&amp;t=blog&amp;o=vip&amp;s=&amp;l=&amp;f=&amp;viparticle=" target="_blank" rel="noopener">MySQL</a>
                                <a data-report-click="{&quot;mod&quot;:&quot;popu_626&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4223&quot;,&quot;strategy&quot;:&quot;systemctl&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;extra&quot;:&quot;{\&quot;searchword\&quot;:\&quot;systemctl\&quot;}&quot;}" class="tag-link" href="https://so.csdn.net/so/search/s.do?q=systemctl&amp;t=blog&amp;o=vip&amp;s=&amp;l=&amp;f=&amp;viparticle=" target="_blank" rel="noopener">systemctl</a>
                                <a data-report-click="{&quot;mod&quot;:&quot;popu_626&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4223&quot;,&quot;strategy&quot;:&quot;MySQL创建用户与授权&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;extra&quot;:&quot;{\&quot;searchword\&quot;:\&quot;MySQL创建用户与授权\&quot;}&quot;}" class="tag-link" href="https://so.csdn.net/so/search/s.do?q=MySQL%E5%88%9B%E5%BB%BA%E7%94%A8%E6%88%B7%E4%B8%8E%E6%8E%88%E6%9D%83&amp;t=blog&amp;o=vip&amp;s=&amp;l=&amp;f=&amp;viparticle=" target="_blank" rel="noopener">MySQL创建用户与授权</a>
                    </div>
                </div>
                <div class="up-time"><span>于&nbsp;2019-05-17 15:53:51&nbsp;首次发布</span></div>
                <div class="slide-content-box">
                    <div class="article-copyright">
                        <div class="creativecommons">
                            版权声明：本文为博主原创文章，遵循<a href="http://creativecommons.org/licenses/by-sa/4.0/" target="_blank" rel="noopener"> CC 4.0 BY-SA </a>版权协议，转载请附上原文出处链接和本声明。
                        </div>
                        <div class="article-source-link">
                            本文链接：<a href="https://blog.csdn.net/hwx865/article/details/90287715" target="_blank">https://blog.csdn.net/hwx865/article/details/90287715</a>
                        </div>
                    </div>
                </div>
                <div class="operating">
                    <a class="href-article-edit slide-toggle">版权</a>
                </div>
            </div>
        </div>
    </div>
    
        <div id="blogColumnPayAdvert">
            <div class="column-group">
                <div class="column-group-item column-group0 column-group-item-one">
                    <div class="item-l">
                        <a class="item-target" href="https://blog.csdn.net/hwx865/category_8956701.html" target="_blank" title="Linux" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.6332&quot;}">
                            <img class="item-target" src="./Ubuntu 安装和使用MySQL_files/20201014180756928.png" alt="">
                            <span class="title item-target">
                                <span>
                                <span class="tit">Linux</span>
                                    <span class="dec">专栏收录该内容</span>
                                </span>
                            </span>
                        </a>
                    </div>
                    <div class="item-m">
                        <span>5 篇文章</span>
                        <span>0 订阅</span>
                    </div>
                    <div class="item-r">
                            <a class="item-target article-column-bt articleColumnFreeBt" data-id="8956701">订阅专栏</a>
                    </div>
                </div>
            </div>
        </div>
    <article class="baidu_pl">
        <div id="article_content" class="article_content clearfix">
        <link rel="stylesheet" href="./Ubuntu 安装和使用MySQL_files/ck_htmledit_views-6e43165c0a.css">
                <div id="content_views" class="htmledit_views">
                    <h1 id="main-toc"><a name="t0"></a><strong>目录</strong></h1> 
<p id="%E5%89%8D%E8%A8%80-toc" style="margin-left:0px;"><a href="https://blog.csdn.net/hwx865/article/details/90287715#%E5%89%8D%E8%A8%80" target="_self">前言</a></p> 
<p id="%E5%AE%89%E8%A3%85MySQL-toc" style="margin-left:0px;"><a href="https://blog.csdn.net/hwx865/article/details/90287715#%E5%AE%89%E8%A3%85MySQL" target="_self">安装MySQL</a></p> 
<p id="%E6%9B%B4%E6%96%B0%E5%88%97%E8%A1%A8-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/hwx865/article/details/90287715#%E6%9B%B4%E6%96%B0%E5%88%97%E8%A1%A8" target="_self">更新列表</a></p> 
<p id="%E5%AE%89%E8%A3%85MySQL%E6%9C%8D%E5%8A%A1%E5%99%A8-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/hwx865/article/details/90287715#%E5%AE%89%E8%A3%85MySQL%E6%9C%8D%E5%8A%A1%E5%99%A8" target="_self">安装MySQL服务器</a></p> 
<p id="%E5%AE%89%E8%A3%85MySQL%E5%AE%A2%E6%88%B7%E7%AB%AF-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/hwx865/article/details/90287715#%E5%AE%89%E8%A3%85MySQL%E5%AE%A2%E6%88%B7%E7%AB%AF" target="_self">安装MySQL客户端</a></p> 
<p id="%E9%85%8D%E7%BD%AEMySQL-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/hwx865/article/details/90287715#%E9%85%8D%E7%BD%AEMySQL" target="_self">配置MySQL</a></p> 
<p id="%E6%B5%8B%E8%AF%95MySQL-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/hwx865/article/details/90287715#%E6%B5%8B%E8%AF%95MySQL" target="_self">测试MySQL</a></p> 
<p id="MySQL%E6%95%B0%E6%8D%AE%E5%BA%93%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8-toc" style="margin-left:0px;"><a href="https://blog.csdn.net/hwx865/article/details/90287715#MySQL%E6%95%B0%E6%8D%AE%E5%BA%93%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8" target="_self">MySQL数据库基本使用</a></p> 
<p id="%E5%90%AF%E5%8A%A8MySQL%E6%95%B0%E6%8D%AE%E5%BA%93%E6%9C%8D%E5%8A%A1-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/hwx865/article/details/90287715#%E5%90%AF%E5%8A%A8MySQL%E6%95%B0%E6%8D%AE%E5%BA%93%E6%9C%8D%E5%8A%A1" target="_self">启动MySQL数据库服务</a></p> 
<p id="%E9%87%8D%E5%90%AFMySQL%E6%95%B0%E6%8D%AE%E5%BA%93%E6%9C%8D%E5%8A%A1-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/hwx865/article/details/90287715#%E9%87%8D%E5%90%AFMySQL%E6%95%B0%E6%8D%AE%E5%BA%93%E6%9C%8D%E5%8A%A1" target="_self">重启MySQL数据库服务</a></p> 
<p id="%E5%81%9C%E6%AD%A2MySQL%E6%95%B0%E6%8D%AE%E5%BA%93%E6%9C%8D%E5%8A%A1-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/hwx865/article/details/90287715#%E5%81%9C%E6%AD%A2MySQL%E6%95%B0%E6%8D%AE%E5%BA%93%E6%9C%8D%E5%8A%A1" target="_self">停止MySQL数据库服务</a></p> 
<p id="%E6%9F%A5%E7%9C%8BMySQL%E8%BF%90%E8%A1%8C%E7%8A%B6%E6%80%81-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/hwx865/article/details/90287715#%E6%9F%A5%E7%9C%8BMySQL%E8%BF%90%E8%A1%8C%E7%8A%B6%E6%80%81" target="_self">查看MySQL运行状态</a></p> 
<p id="%E8%AE%BE%E7%BD%AEMySQL%E6%9C%8D%E5%8A%A1%E5%BC%80%E6%9C%BA%E8%87%AA%E5%90%AF%E5%8A%A8-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/hwx865/article/details/90287715#%E8%AE%BE%E7%BD%AEMySQL%E6%9C%8D%E5%8A%A1%E5%BC%80%E6%9C%BA%E8%87%AA%E5%90%AF%E5%8A%A8" target="_self">设置MySQL服务开机自启动</a></p> 
<p id="%E5%81%9C%E6%AD%A2MySQL%E6%9C%8D%E5%8A%A1%E5%BC%80%E6%9C%BA%E8%87%AA%E5%90%AF%E5%8A%A8-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/hwx865/article/details/90287715#%E5%81%9C%E6%AD%A2MySQL%E6%9C%8D%E5%8A%A1%E5%BC%80%E6%9C%BA%E8%87%AA%E5%90%AF%E5%8A%A8" target="_self">停止MySQL服务开机自启动</a></p> 
<p id="MySQL%E7%9A%84%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/hwx865/article/details/90287715#MySQL%E7%9A%84%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6" target="_self">MySQL的配置文件</a></p> 
<p id="MySQL%E8%BF%9C%E7%A8%8B%E7%99%BB%E5%BD%95-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/hwx865/article/details/90287715#MySQL%E8%BF%9C%E7%A8%8B%E7%99%BB%E5%BD%95" target="_self">配置MySQL远程登录</a></p> 
<p id="systemctl%E5%92%8Cservice%E7%9A%84%E5%8C%BA%E5%88%AB-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/hwx865/article/details/90287715#systemctl%E5%92%8Cservice%E7%9A%84%E5%8C%BA%E5%88%AB" target="_self">systemctl和service的区别</a></p> 
<p id="MySQL%E5%88%9B%E5%BB%BA%E7%94%A8%E6%88%B7%E4%B8%8E%E6%8E%88%E6%9D%83-toc" style="margin-left:0px;"><a href="https://blog.csdn.net/hwx865/article/details/90287715#MySQL%E5%88%9B%E5%BB%BA%E7%94%A8%E6%88%B7%E4%B8%8E%E6%8E%88%E6%9D%83" target="_self">MySQL创建用户与授权</a></p> 
<p id="%E4%BD%BF%E7%94%A8root%E7%94%A8%E6%88%B7%E7%99%BB%E5%BD%95-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/hwx865/article/details/90287715#%E4%BD%BF%E7%94%A8root%E7%94%A8%E6%88%B7%E7%99%BB%E5%BD%95" target="_self">使用root用户登录</a></p> 
<p id="%E9%80%80%E5%87%BAMySQL%E5%91%BD%E4%BB%A4%E8%A1%8C-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/hwx865/article/details/90287715#%E9%80%80%E5%87%BAMySQL%E5%91%BD%E4%BB%A4%E8%A1%8C" target="_self">退出MySQL命令行</a></p> 
<p id="%E5%88%9B%E5%BB%BA%E7%94%A8%E6%88%B7-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/hwx865/article/details/90287715#%E5%88%9B%E5%BB%BA%E7%94%A8%E6%88%B7" target="_self">创建用户</a></p> 
<p id="%E7%94%A8%E6%88%B7%E6%8E%88%E6%9D%83-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/hwx865/article/details/90287715#%E7%94%A8%E6%88%B7%E6%8E%88%E6%9D%83" target="_self">用户授权</a></p> 
<p id="%E8%AE%BE%E7%BD%AE%E4%B8%8E%E6%9B%B4%E6%94%B9%E7%94%A8%E6%88%B7%E5%AF%86%E7%A0%81-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/hwx865/article/details/90287715#%E8%AE%BE%E7%BD%AE%E4%B8%8E%E6%9B%B4%E6%94%B9%E7%94%A8%E6%88%B7%E5%AF%86%E7%A0%81" target="_self">设置与更改用户密码</a></p> 
<p id="%E6%92%A4%E9%94%80%E7%94%A8%E6%88%B7%E6%9D%83%E9%99%90-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/hwx865/article/details/90287715#%E6%92%A4%E9%94%80%E7%94%A8%E6%88%B7%E6%9D%83%E9%99%90" target="_self">撤销用户权限</a></p> 
<p id="%E5%88%A0%E9%99%A4%E7%94%A8%E6%88%B7-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/hwx865/article/details/90287715#%E5%88%A0%E9%99%A4%E7%94%A8%E6%88%B7" target="_self">删除用户</a></p> 
<p id="%E6%9F%A5%E7%9C%8B%E7%94%A8%E6%88%B7%E4%BF%A1%E6%81%AF-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/hwx865/article/details/90287715#%E6%9F%A5%E7%9C%8B%E7%94%A8%E6%88%B7%E4%BF%A1%E6%81%AF" target="_self">查看用户信息</a></p> 
<hr id="hr-toc">
<h1 id="%E5%89%8D%E8%A8%80"><a name="t1"></a>前言</h1> 
<p>MySQL是一个开源数据库管理系统，通常作为流行的LAMP（Linux，Apache，MySQL，PHP / Python / Perl）堆栈的一部分安装。它使用关系数据库和SQL（结构化查询语言）来管理其数据。</p> 
<h1 id="%E5%AE%89%E8%A3%85MySQL"><a name="t2"></a>安装MySQL</h1> 
<h3 id="%E6%9B%B4%E6%96%B0%E5%88%97%E8%A1%A8"><a name="t3"></a>更新列表</h3> 
<pre class="has" data-index="0" name="code"><code class="language-bash hljs">sudo apt-get update</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<h3 id="%E5%AE%89%E8%A3%85MySQL%E6%9C%8D%E5%8A%A1%E5%99%A8"><a name="t4"></a>安装MySQL服务器</h3> 
<pre class="has" data-index="1" name="code"><code class="hljs language-vbscript">sudo apt-<span class="hljs-keyword">get</span> install mysql-<span class="hljs-built_in">server</span></code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<p>在安装过程中，系统将提示您创建root密码。选择一个安全的，并确保记住它，因为后面需要用到这个密码。</p> 
<h3 id="%E5%AE%89%E8%A3%85MySQL%E5%AE%A2%E6%88%B7%E7%AB%AF"><a name="t5"></a>安装MySQL客户端</h3> 
<pre class="has" data-index="2" name="code"><code class="language-bash hljs">sudo apt-get install mysql-client</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<p><strong>mysql-server和mysql-client区别</strong></p> 
<p>mysql-server 是MySQL核心程序将安装MySQL数据库服务器，用于生成管理多个数据库实例，持久保存数据并为其提供查询接口（SQL），供不同客户端调用。</p> 
<p>mysql-client 是操作数据库实例的工具，允许连接到MySQL服务器使用该查询接口。它将为您提供MySQL命令行程序。</p> 
<p>如果只需要连接到远程服务器并运行查询，只安装mysql-client就可以了。如果是服务器只提供连接服务的只需要安装mysql-server</p> 
<h3 id="%E9%85%8D%E7%BD%AEMySQL"><a name="t6"></a><span style="color:#323232;">配置MySQL</span></h3> 
<p>运行MySQL初始化安全脚本</p> 
<pre class="has" data-index="3" name="code"><code class="hljs language-undefined">sudo mysql_secure_installation</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<p>mysql_secure_installation脚本设置的东西：更改root密码、移除MySQL的匿名用户、禁止root远程登录、删除test数据库和重新加载权限。除了询问是否要更改root密码时，看情况是否需要更改，其余的问题都可以按Y，然后ENTER接受所有后续问题的默认值。使用上面的这些选项可以提高MySQL的安全。</p> 
<h3 id="%E6%B5%8B%E8%AF%95MySQL"><a name="t7"></a><span style="color:#323232;">测试MySQL</span></h3> 
<p>无论你如何安装它，MySQL应该已经开始自动运行。要测试它，请检查其状态。</p> 
<pre class="has" data-index="4" name="code"><code class="language-bash hljs">systemctl status mysql.service</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<p>将看到类似于以下内容的输出：</p> 
<pre class="has" data-index="5" name="code"><code class="language-bash hljs"><ol class="hljs-ln" style="width:100%"><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="1"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line">● mysql.service - MySQL Community Server</div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="2"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line">   Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: en</div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="3"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line">   Active: active (running) since Wed 2016-11-23 21:21:25 UTC; 30min ago</div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="4"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> Main PID: 3754 (mysqld)</div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="5"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line">    Tasks: 28</div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="6"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line">   Memory: 142.3M</div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="7"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line">      CPU: 1.994s</div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="8"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line">   CGroup: /system.slice/mysql.service</div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="9"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line">           └─3754 /usr/sbin/mysqld</div></div></li></ol></code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<h1 id="MySQL%E6%95%B0%E6%8D%AE%E5%BA%93%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8"><a name="t8"></a>MySQL数据库基本使用</h1> 
<h3 id="%E5%90%AF%E5%8A%A8MySQL%E6%95%B0%E6%8D%AE%E5%BA%93%E6%9C%8D%E5%8A%A1"><a name="t9"></a>启动MySQL数据库服务</h3> 
<pre class="has" data-index="6" name="code"><code class="language-bash hljs"><ol class="hljs-ln" style="width:100%"><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="1"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line">sudo service mysql start</div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="2"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line">或</div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="3"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line">sudo systemctl start mysql.service</div></div></li></ol></code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<h3 id="%E9%87%8D%E5%90%AFMySQL%E6%95%B0%E6%8D%AE%E5%BA%93%E6%9C%8D%E5%8A%A1"><a name="t10"></a>重启MySQL数据库服务</h3> 
<pre class="has" data-index="7" name="code"><code class="language-bash hljs"><ol class="hljs-ln" style="width:100%"><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="1"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line">sudo service mysql restart</div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="2"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line">或</div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="3"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line">sudo systemctl restart mysql.service</div></div></li></ol></code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<h3 id="%E5%81%9C%E6%AD%A2MySQL%E6%95%B0%E6%8D%AE%E5%BA%93%E6%9C%8D%E5%8A%A1"><a name="t11"></a>停止MySQL数据库服务</h3> 
<pre class="has" data-index="8" name="code"><code class="language-bash hljs"><ol class="hljs-ln" style="width:100%"><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="1"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line">sudo service mysql stop</div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="2"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line">或</div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="3"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line">sudo systemctl stop mysql.service</div></div></li></ol></code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<h3 id="%E6%9F%A5%E7%9C%8BMySQL%E8%BF%90%E8%A1%8C%E7%8A%B6%E6%80%81"><a name="t12"></a>查看MySQL运行状态</h3> 
<pre class="has" data-index="9" name="code"><code class="language-bash hljs"><ol class="hljs-ln" style="width:100%"><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="1"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line">sudo service mysql status</div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="2"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line">或</div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="3"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line">sudo systemctl status mysql.service</div></div></li></ol></code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<h3 id="%E8%AE%BE%E7%BD%AEMySQL%E6%9C%8D%E5%8A%A1%E5%BC%80%E6%9C%BA%E8%87%AA%E5%90%AF%E5%8A%A8"><a name="t13"></a>设置MySQL服务开机自启动</h3> 
<pre class="has" data-index="10" name="code"><code class="language-bash hljs"><ol class="hljs-ln" style="width:100%"><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="1"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line">sudo service mysql <span class="hljs-built_in">enable</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="2"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line">或</div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="3"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line">sudo systemctl <span class="hljs-built_in">enable</span> mysql.service</div></div></li></ol></code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<h3 id="%E5%81%9C%E6%AD%A2MySQL%E6%9C%8D%E5%8A%A1%E5%BC%80%E6%9C%BA%E8%87%AA%E5%90%AF%E5%8A%A8"><a name="t14"></a>停止MySQL服务开机自启动</h3> 
<pre class="has" data-index="11" name="code"><code class="language-bash hljs"><ol class="hljs-ln" style="width:100%"><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="1"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line">sudo service mysql <span class="hljs-built_in">disable</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="2"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line">或</div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="3"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line">sudo systemctl <span class="hljs-built_in">disable</span> mysql.service</div></div></li></ol></code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<h3 id="MySQL%E7%9A%84%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6"><a name="t15"></a>MySQL的配置文件</h3> 
<pre class="has" data-index="12" name="code"><code class="language-bash hljs">sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<h3 id="MySQL%E8%BF%9C%E7%A8%8B%E7%99%BB%E5%BD%95"><a name="t16"></a><strong>配置MySQL远程登录</strong></h3> 
<p>有时候，为了开发方便，我们需要使用本地电脑远程访问和管理MySQL数据库。默认情况下，为了安全MySQL只允许本地登录，如果要开启远程连接，则需要修改/etc/mysql/mysql.conf.d/mysqld.cnf配置文件。</p> 
<p>打开配置文件，找到bind-address = 127.0.0.1这一行<br> 改为bind-address = 0.0.0.0即可或简单一点注释掉也行</p> 
<p>修改完成保存后，需要重启MySQL服务才会生效</p> 
<p>接着需要为用户赋予远程登录的权限，使用以下用户授权步骤即可</p> 
<h3 id="systemctl%E5%92%8Cservice%E7%9A%84%E5%8C%BA%E5%88%AB"><a name="t17"></a>systemctl和service的区别</h3> 
<p>Linux 服务管理两种方式service和systemctl，以前都用service命令管理mysql，现在liunx系统升级了，又有了新的更好的方法管理系统进程，现在使用systemctl命令管理mysql。</p> 
<p>service是一个脚本命令，分析service可知是去/etc/init.d目录下执行相关程序。service和chkconfig结合使用。<br> 服务配置文件存放目录/etc/init.d/</p> 
<p>Systemd是一个系统管理守护进程、工具和库的集合，是Linux系统最新的初始化系统(init)，作用是提高系统的启动速度，尽可能启动较少的进程，尽可能更多进程并发启动。<br> Systemd对应的进程管理命令是systemctl，主要负责控制Systemd系统和服务管理器。同时兼容service命令。</p> 
<p>在Linux生态系统中，Systemd被部署到了大多数的标准Linux发行版中，只有为数不多的几个发行版尚未部署。Systemd通常是所有其它守护进程的父进程，但并非总是如此。</p> 
<p></p> 
<h1 id="MySQL%E5%88%9B%E5%BB%BA%E7%94%A8%E6%88%B7%E4%B8%8E%E6%8E%88%E6%9D%83"><a name="t18"></a>MySQL创建用户与授权</h1> 
<h3 id="%E4%BD%BF%E7%94%A8root%E7%94%A8%E6%88%B7%E7%99%BB%E5%BD%95"><a name="t19"></a>使用root用户登录</h3> 
<pre class="has" data-index="13" name="code"><code class="language-bash hljs"><ol class="hljs-ln" style="width:100%"><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="1"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-comment"># 登录mysql并输入密码</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="2"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line">mysql -u root -p</div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="3"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> </div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="4"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-comment"># mysql8 修改密码方式</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="5"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line">alter user <span class="hljs-string">'root'</span>@<span class="hljs-string">'localhost'</span> identified by <span class="hljs-string">'这里填你要的密码'</span>;</div></div></li></ol></code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<p>注：mysql8 初次安装后，需要先通过cat /var/log/mysqld.log | grep password 命令查看密码，修改密码时，需要 符合长度，且含有数字、小写或大写字母、特殊字符。</p> 
<p>无需重启数据库即可生效（且mariadb自动会被替换，不再生效）</p> 
<h3 id="%E9%80%80%E5%87%BAMySQL%E5%91%BD%E4%BB%A4%E8%A1%8C"><a name="t20"></a>退出MySQL命令行</h3> 
<pre class="has" data-index="14" name="code"><code class="language-sql hljs">mysql<span class="hljs-operator">&gt;</span> quit</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<h3 id="%E5%88%9B%E5%BB%BA%E7%94%A8%E6%88%B7"><a name="t21"></a>创建用户</h3> 
<pre class="has" data-index="15" name="code"><code class="language-sql hljs"><span class="hljs-keyword">CREATE</span> <span class="hljs-keyword">USER</span> <span class="hljs-string">'username'</span>@<span class="hljs-string">'host'</span> IDENTIFIED <span class="hljs-keyword">BY</span> <span class="hljs-string">'password'</span>;</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<p>username：你将创建的用户名<br> host：指定该用户在哪个主机上可以登陆，如果是本地用户可用localhost，如果想让该用户可以从任意远程主机登陆，可以使用通配符%<br> password：该用户的登陆密码，密码可以为空，如果为空则该用户可以不需要密码登陆服务器</p> 
<p><strong>注意，使用%通配符创建外网访问用户后，登录时需要明确访问的IP地址，例如</strong></p> 
<pre class="has" data-index="16" name="code"><code class="language-bash hljs">mysql -u <span class="hljs-built_in">test</span> -h 115.28.203.224 -p</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<p><strong>例子</strong></p> 
<pre class="has" data-index="17" name="code"><code class="language-sql hljs"><ol class="hljs-ln" style="width:100%"><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="1"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-keyword">CREATE</span> <span class="hljs-keyword">USER</span> <span class="hljs-string">'dog'</span>@<span class="hljs-string">'localhost'</span> IDENTIFIED <span class="hljs-keyword">BY</span> <span class="hljs-string">'123456'</span>;</div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="2"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-keyword">CREATE</span> <span class="hljs-keyword">USER</span> <span class="hljs-string">'pig'</span>@<span class="hljs-string">'192.168.1.101'</span> IDENDIFIED <span class="hljs-keyword">BY</span> <span class="hljs-string">'123456'</span>;</div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="3"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-keyword">CREATE</span> <span class="hljs-keyword">USER</span> <span class="hljs-string">'pig'</span>@<span class="hljs-string">'%'</span> IDENTIFIED <span class="hljs-keyword">BY</span> <span class="hljs-string">'123456'</span>;</div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="4"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-keyword">CREATE</span> <span class="hljs-keyword">USER</span> <span class="hljs-string">'pig'</span>@<span class="hljs-string">'%'</span> IDENTIFIED <span class="hljs-keyword">BY</span> <span class="hljs-string">''</span>;</div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="5"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-keyword">CREATE</span> <span class="hljs-keyword">USER</span> <span class="hljs-string">'pig'</span>@<span class="hljs-string">'%'</span>;</div></div></li></ol></code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<h3 id="%E7%94%A8%E6%88%B7%E6%8E%88%E6%9D%83"><a name="t22"></a>用户授权</h3> 
<pre class="has" data-index="18" name="code"><code class="language-sql hljs"><span class="hljs-keyword">GRANT</span> privileges <span class="hljs-keyword">ON</span> databasename.tablename <span class="hljs-keyword">TO</span> <span class="hljs-string">'username'</span>@<span class="hljs-string">'host'</span>;</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<p>privileges：用户的操作权限，如SELECT，INSERT，UPDATE等，如果要授予所的权限则使用ALL<br> databasename：数据库名<br> tablename：表名<br> 如果要授予该用户对所有数据库和表的相应操作权限则可用*表示，如*.*</p> 
<p><strong>注意:用以上命令授权的用户不能给其它用户授权，如果想让被授权的用户可以将他的拥有的权限授给其他用户，用以下命令</strong></p> 
<pre class="has" data-index="19" name="code"><code class="language-sql hljs"><span class="hljs-keyword">GRANT</span> privileges <span class="hljs-keyword">ON</span> databasename.tablename <span class="hljs-keyword">TO</span> <span class="hljs-string">'username'</span>@<span class="hljs-string">'host'</span> <span class="hljs-keyword">WITH</span> <span class="hljs-keyword">GRANT</span> OPTION;</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<p><strong>刷新授权</strong></p> 
<pre class="has" data-index="20" name="code"><code class="language-sql hljs">flush privileges;</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<p>这一步一定要做，不然无法成功！这句表示从mysql数据库的grant表中重新加载权限数据，因为MySQL把权限都放在了cache中，所以在做完更改后需要重新加载。</p> 
<p><strong>例子</strong></p> 
<pre class="has" data-index="21" name="code"><code class="language-sql hljs"><ol class="hljs-ln" style="width:100%"><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="1"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-keyword">GRANT</span> <span class="hljs-keyword">SELECT</span>, <span class="hljs-keyword">INSERT</span> privileges <span class="hljs-keyword">ON</span> test.user <span class="hljs-keyword">TO</span> <span class="hljs-string">'pig'</span>@<span class="hljs-string">'%'</span>;</div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="2"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-keyword">GRANT</span> <span class="hljs-keyword">ALL</span> privileges <span class="hljs-keyword">ON</span> <span class="hljs-operator">*</span>.<span class="hljs-operator">*</span> <span class="hljs-keyword">TO</span> <span class="hljs-string">'pig'</span>@<span class="hljs-string">'%'</span>;</div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="3"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-keyword">GRANT</span> <span class="hljs-keyword">ALL</span> privileges <span class="hljs-keyword">ON</span> maindataplus.<span class="hljs-operator">*</span> <span class="hljs-keyword">TO</span> <span class="hljs-string">'pig'</span>@<span class="hljs-string">'%'</span>;</div></div></li></ol></code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<h3 id="%E8%AE%BE%E7%BD%AE%E4%B8%8E%E6%9B%B4%E6%94%B9%E7%94%A8%E6%88%B7%E5%AF%86%E7%A0%81"><a name="t23"></a>设置与更改用户密码</h3> 
<pre class="has" data-index="22" name="code"><code class="language-sql hljs"><span class="hljs-keyword">ALTER</span> <span class="hljs-keyword">USER</span> <span class="hljs-string">'username'</span>@<span class="hljs-string">'host'</span> IDENTIFIED <span class="hljs-keyword">BY</span> <span class="hljs-string">'password'</span> PASSWORD EXPIRE NEVER;  </code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<p></p> 
<h3 id="%E6%92%A4%E9%94%80%E7%94%A8%E6%88%B7%E6%9D%83%E9%99%90"><a name="t24"></a>撤销用户权限</h3> 
<pre class="has" data-index="23" name="code"><code class="language-sql hljs"><span class="hljs-keyword">REVOKE</span> privileges <span class="hljs-keyword">ON</span> databasename.tablename <span class="hljs-keyword">FROM</span> <span class="hljs-string">'username'</span>@<span class="hljs-string">'host'</span>;</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<p>privileges：用户的操作权限，如SELECT，INSERT，UPDATE等，如果要授予所的权限则使用ALL<br> databasename：数据库名<br> tablename：表名<br> 如果要授予该用户对所有数据库和表的相应操作权限则可用*表示，如*.*</p> 
<p><strong>例子</strong></p> 
<pre class="has" data-index="24" name="code"><code class="language-sql hljs"><span class="hljs-keyword">REVOKE</span> <span class="hljs-keyword">SELECT</span> privileges <span class="hljs-keyword">ON</span> <span class="hljs-operator">*</span>.<span class="hljs-operator">*</span> <span class="hljs-keyword">FROM</span> <span class="hljs-string">'pig'</span>@<span class="hljs-string">'%'</span>;</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<p><strong>注意</strong></p> 
<p>假如你在给用户'pig'@'%'授权的时候是这样的（或类似的）：GRANT SELECT ON <strong>test.user</strong> TO 'pig'@'%'，则在使用REVOKE SELECT ON <strong>*.*</strong> FROM 'pig'@'%';命令并不能撤销该用户对test数据库中user表的SELECT 操作。</p> 
<p>相反，如果授权使用的是GRANT SELECT ON <strong>*.*</strong> TO 'pig'@'%';则REVOKE SELECT ON <strong>test.user</strong> FROM 'pig'@'%';命令也不能撤销该用户对test数据库中user表的Select权限。</p> 
<p>具体信息可以用命令SHOW GRANTS FOR 'pig'@'%'; 查看。</p> 
<h3 id="%E5%88%A0%E9%99%A4%E7%94%A8%E6%88%B7"><a name="t25"></a>删除用户</h3> 
<pre class="has" data-index="25" name="code"><code class="language-sql hljs"><span class="hljs-keyword">DROP</span> <span class="hljs-keyword">USER</span> <span class="hljs-string">'username'</span>@<span class="hljs-string">'host'</span>;</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<h3 id="%E6%9F%A5%E7%9C%8B%E7%94%A8%E6%88%B7%E4%BF%A1%E6%81%AF"><a name="t26"></a>查看用户信息</h3> 
<p>切换mysql数据库</p> 
<pre class="has" data-index="26" name="code"><code class="language-sql hljs">use mysql；</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<p>查询用户表</p> 
<pre class="has" data-index="27" name="code"><code class="language-sql hljs"><ol class="hljs-ln" style="width:100%"><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="1"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-keyword">SELECT</span> <span class="hljs-keyword">User</span>, Host <span class="hljs-keyword">FROM</span> <span class="hljs-keyword">user</span>;</div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="2"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> </div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="3"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">+</span><span class="hljs-comment">------------------+-----------+</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="4"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">|</span> <span class="hljs-keyword">User</span>             <span class="hljs-operator">|</span> Host      <span class="hljs-operator">|</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="5"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">+</span><span class="hljs-comment">------------------+-----------+</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="6"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">|</span> diming           <span class="hljs-operator">|</span> <span class="hljs-operator">%</span>         <span class="hljs-operator">|</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="7"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">|</span> debian<span class="hljs-operator">-</span>sys<span class="hljs-operator">-</span>maint <span class="hljs-operator">|</span> localhost <span class="hljs-operator">|</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="8"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">|</span> mysql.session    <span class="hljs-operator">|</span> localhost <span class="hljs-operator">|</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="9"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">|</span> mysql.sys        <span class="hljs-operator">|</span> localhost <span class="hljs-operator">|</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="10"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">|</span> root             <span class="hljs-operator">|</span> localhost <span class="hljs-operator">|</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="11"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">+</span><span class="hljs-comment">------------------+-----------+</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="12"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-number">5</span> <span class="hljs-keyword">rows</span> <span class="hljs-keyword">in</span> <span class="hljs-keyword">set</span> (<span class="hljs-number">0.00</span> sec)</div></div></li></ol></code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<h3><a name="t27"></a><strong>查看用户权限</strong></h3> 
<pre class="has" data-index="28" name="code"><code class="language-sql hljs"><span class="hljs-keyword">show</span> grants <span class="hljs-keyword">for</span> <span class="hljs-string">'username'</span>@<span class="hljs-string">'host'</span>;</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<p><strong>例子</strong></p> 
<pre class="has" data-index="29" name="code"><code class="language-sql hljs"><ol class="hljs-ln" style="width:100%"><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="1"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-keyword">show</span> grants <span class="hljs-keyword">for</span> <span class="hljs-string">'root'</span>@<span class="hljs-string">'localhost'</span>;</div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="2"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">+</span><span class="hljs-comment">---------------------------------------------------------------------+</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="3"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">|</span> Grants <span class="hljs-keyword">for</span> root<span class="hljs-variable">@localhost</span>                                           <span class="hljs-operator">|</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="4"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">+</span><span class="hljs-comment">---------------------------------------------------------------------+</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="5"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">|</span> <span class="hljs-keyword">GRANT</span> <span class="hljs-keyword">ALL</span> PRIVILEGES <span class="hljs-keyword">ON</span> <span class="hljs-operator">*</span>.<span class="hljs-operator">*</span> <span class="hljs-keyword">TO</span> <span class="hljs-string">'root'</span>@<span class="hljs-string">'localhost'</span> <span class="hljs-keyword">WITH</span> <span class="hljs-keyword">GRANT</span> OPTION <span class="hljs-operator">|</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="6"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">|</span> <span class="hljs-keyword">GRANT</span> PROXY <span class="hljs-keyword">ON</span> <span class="hljs-string">''</span>@<span class="hljs-string">''</span> <span class="hljs-keyword">TO</span> <span class="hljs-string">'root'</span>@<span class="hljs-string">'localhost'</span> <span class="hljs-keyword">WITH</span> <span class="hljs-keyword">GRANT</span> OPTION        <span class="hljs-operator">|</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="7"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">+</span><span class="hljs-comment">---------------------------------------------------------------------+</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="8"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-number">2</span> <span class="hljs-keyword">rows</span> <span class="hljs-keyword">in</span> <span class="hljs-keyword">set</span> (<span class="hljs-number">0.00</span> sec)</div></div></li></ol></code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<h3><a name="t28"></a>查看加密的规则</h3> 
<pre data-index="30"><code class="language-sql hljs"><span class="hljs-keyword">select</span> Host,<span class="hljs-keyword">User</span>,plugin <span class="hljs-keyword">from</span> mysql.user;</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<p><img alt="" src="./Ubuntu 安装和使用MySQL_files/2018120422415839.PNG"></p> 
<h3><a name="t29"></a>修改加密方式</h3> 
<pre data-index="31"><code class="language-sql hljs"><span class="hljs-keyword">ALTER</span> <span class="hljs-keyword">USER</span> <span class="hljs-string">'username'</span>@<span class="hljs-string">'host'</span> IDENTIFIED <span class="hljs-keyword">WITH</span> mysql_native_password <span class="hljs-keyword">BY</span> <span class="hljs-string">'password'</span>;</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<p><strong>mysql_native_password：加密方式</strong></p> 
<p><strong>password：用户密码</strong></p> 
<h1><a name="t30"></a>创建数据库</h1> 
<p>登录root用户后，使用 create 命令创建数据库，语法如下:</p> 
<pre class="has" data-index="32" name="code"><code class="language-sql hljs"><span class="hljs-keyword">CREATE</span> DATABASE 数据库名;</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<h1><a name="t31"></a>删除数据库</h1> 
<pre class="has" data-index="33" name="code"><code class="language-sql hljs"><span class="hljs-keyword">DROP</span> DATABASE 数据库名称;</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<h1><a name="t32"></a>MySQL查看信息</h1> 
<p>使用MySQL时，需要了解当前数据库的情况，例如当前的数据库大小、字符集、用户等等。下面总结了一些查看数据库相关信息的命令。</p> 
<h3><a name="t33"></a><strong>查看显示所有数据库</strong></h3> 
<pre class="has" data-index="34" name="code"><code class="language-sql hljs"><span class="hljs-keyword">show</span> databases;
</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<h3><a name="t34"></a>查看当前使用的数据库</h3> 
<pre class="has" data-index="35" name="code"><code class="language-sql hljs"><span class="hljs-keyword">select</span> database();</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<h3><a name="t35"></a>查看数据库使用端口</h3> 
<pre class="has" data-index="36" name="code"><code class="language-sql hljs"><span class="hljs-keyword">show</span> variables <span class="hljs-keyword">like</span> <span class="hljs-string">'port'</span>;</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<h3><a name="t36"></a>查看数据库的表信息</h3> 
<pre class="has" data-index="37" name="code"><code class="language-sql hljs"><span class="hljs-keyword">show</span> tables;</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<h3><a name="t37"></a>查看表结构</h3> 
<pre class="has" data-index="38" name="code"><code class="language-sql hljs"><ol class="hljs-ln" style="width:100%"><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="1"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-keyword">show</span> columns <span class="hljs-keyword">from</span> table_name; </div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="2"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line">或</div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="3"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-keyword">describe</span> table_name;</div></div></li></ol></code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<p>显示表结构，字段类型，主键，是否为空等属性，但不显示外键。</p> 
<h3><a name="t38"></a>查看表生成的DDL&nbsp;</h3> 
<p>DDL（data definition language）数据库定义语言：其实就是我们在创建表的时候用到的一些sql，比如说：CREATE、ALTER、DROP等。DDL主要是用在定义或改变表的结构，数据类型，表之间的链接和约束等初始化。</p> 
<pre class="has" data-index="39" name="code"><code class="language-sql hljs"><span class="hljs-keyword">show</span> <span class="hljs-keyword">create</span> <span class="hljs-keyword">table</span> table_name;</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<p>该命令把创建表的DDL，表结构、类型，外键，备注等全部显示出来。</p> 
<h3><a name="t39"></a>查看Mysql数据库大小</h3> 
<p>进入information_schema 数据库（存放了其他的数据库的信息）</p> 
<pre class="has" data-index="40" name="code"><code class="language-sql hljs">use information_schema;</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<p>查询所有数据的大小</p> 
<pre class="has" data-index="41" name="code"><code class="language-sql hljs"><span class="hljs-keyword">select</span> concat(round(<span class="hljs-built_in">sum</span>(data_length<span class="hljs-operator">/</span><span class="hljs-number">1024</span><span class="hljs-operator">/</span><span class="hljs-number">1024</span>),<span class="hljs-number">2</span>),<span class="hljs-string">'MB'</span>) <span class="hljs-keyword">as</span> data <span class="hljs-keyword">from</span> tables;</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<p>查看指定数据库的大小</p> 
<pre class="has" data-index="42" name="code"><code class="language-sql hljs"><span class="hljs-keyword">select</span> concat(round(<span class="hljs-built_in">sum</span>(data_length<span class="hljs-operator">/</span><span class="hljs-number">1024</span><span class="hljs-operator">/</span><span class="hljs-number">1024</span>),<span class="hljs-number">2</span>),<span class="hljs-string">'MB'</span>) <span class="hljs-keyword">as</span> data <span class="hljs-keyword">from</span> tables <span class="hljs-keyword">where</span> table_schema<span class="hljs-operator">=</span><span class="hljs-string">'数据库名称'</span>;</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<p>查看指定数据库的某个表的大小</p> 
<pre class="has" data-index="43" name="code"><code class="language-sql hljs"><span class="hljs-keyword">select</span> concat(round(<span class="hljs-built_in">sum</span>(data_length<span class="hljs-operator">/</span><span class="hljs-number">1024</span><span class="hljs-operator">/</span><span class="hljs-number">1024</span>),<span class="hljs-number">2</span>),<span class="hljs-string">'MB'</span>) <span class="hljs-keyword">as</span> data <span class="hljs-keyword">from</span> tables <span class="hljs-keyword">where</span> table_schema<span class="hljs-operator">=</span><span class="hljs-string">'数据库名称'</span> <span class="hljs-keyword">and</span> table_name<span class="hljs-operator">=</span><span class="hljs-string">'表名称'</span>;</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<p>查看索引所占的空间大小</p> 
<pre class="has" data-index="44" name="code"><code class="language-sql hljs"><span class="hljs-keyword">select</span> concat(round(<span class="hljs-built_in">sum</span>(index_length<span class="hljs-operator">/</span><span class="hljs-number">1024</span><span class="hljs-operator">/</span><span class="hljs-number">1024</span>),<span class="hljs-number">2</span>),<span class="hljs-string">'MB'</span>) <span class="hljs-keyword">as</span> data <span class="hljs-keyword">from</span> tables <span class="hljs-keyword">where</span> table_schema<span class="hljs-operator">=</span><span class="hljs-string">'mysql'</span>;</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<h3><a name="t40"></a>查看数据文件存放路径</h3> 
<pre class="has" data-index="45" name="code"><code class="language-sql hljs"><span class="hljs-keyword">show</span> variables <span class="hljs-keyword">like</span> <span class="hljs-string">'%datadir%'</span>;</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<h3><a name="t41"></a>查看数据库编码</h3> 
<pre class="has" data-index="46" name="code"><code class="language-sql hljs"><ol class="hljs-ln" style="width:100%"><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="1"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-keyword">show</span> variables <span class="hljs-keyword">like</span> <span class="hljs-string">'character%'</span>;</div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="2"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">+</span><span class="hljs-comment">--------------------------+----------------------------+</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="3"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">|</span> Variable_name            <span class="hljs-operator">|</span> <span class="hljs-keyword">Value</span>                      <span class="hljs-operator">|</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="4"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">+</span><span class="hljs-comment">--------------------------+----------------------------+</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="5"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">|</span> character_set_client     <span class="hljs-operator">|</span> utf8                       <span class="hljs-operator">|</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="6"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">|</span> character_set_connection <span class="hljs-operator">|</span> utf8                       <span class="hljs-operator">|</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="7"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">|</span> character_set_database   <span class="hljs-operator">|</span> utf8                       <span class="hljs-operator">|</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="8"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">|</span> character_set_filesystem <span class="hljs-operator">|</span> <span class="hljs-type">binary</span>                     <span class="hljs-operator">|</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="9"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">|</span> character_set_results    <span class="hljs-operator">|</span> utf8                       <span class="hljs-operator">|</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="10"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">|</span> character_set_server     <span class="hljs-operator">|</span> latin1                     <span class="hljs-operator">|</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="11"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">|</span> character_set_system     <span class="hljs-operator">|</span> utf8                       <span class="hljs-operator">|</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="12"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">|</span> character_sets_dir       <span class="hljs-operator">|</span> <span class="hljs-operator">/</span>usr<span class="hljs-operator">/</span>share<span class="hljs-operator">/</span>mysql<span class="hljs-operator">/</span>charsets<span class="hljs-operator">/</span> <span class="hljs-operator">|</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="13"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">+</span><span class="hljs-comment">--------------------------+----------------------------+</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="14"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-number">8</span> <span class="hljs-keyword">rows</span> <span class="hljs-keyword">in</span> <span class="hljs-keyword">set</span> (<span class="hljs-number">0.00</span> sec)</div></div></li></ol></code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<p>character_set_client &nbsp; &nbsp; &nbsp;为客户端编码方式；</p> 
<p>character_set_connection &nbsp;为建立连接使用的编码；</p> 
<p>character_set_database &nbsp; &nbsp;为数据库的编码；</p> 
<p>character_set_results &nbsp; &nbsp; 为结果集的编码；</p> 
<p>character_set_server &nbsp; &nbsp; &nbsp;为数据库服务器的编码；</p> 
<h3><a name="t42"></a>查看数据库的最大连接数</h3> 
<pre class="has" data-index="47" name="code"><code class="language-sql hljs"><span class="hljs-keyword">show</span> variables <span class="hljs-keyword">like</span> <span class="hljs-string">'%max_connections%'</span>;</code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<h3><a name="t43"></a>查看数据库当前连接数，并发数</h3> 
<pre class="has" data-index="48" name="code"><code class="language-sql hljs"><ol class="hljs-ln" style="width:100%"><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="1"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-keyword">show</span> status <span class="hljs-keyword">like</span> <span class="hljs-string">'Threads%'</span>;</div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="2"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">+</span><span class="hljs-comment">-------------------+-------+</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="3"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">|</span> Variable_name     <span class="hljs-operator">|</span> <span class="hljs-keyword">Value</span> <span class="hljs-operator">|</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="4"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">+</span><span class="hljs-comment">-------------------+-------+</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="5"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">|</span> Threads_cached    <span class="hljs-operator">|</span> <span class="hljs-number">0</span>     <span class="hljs-operator">|</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="6"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">|</span> Threads_connected <span class="hljs-operator">|</span> <span class="hljs-number">27</span>    <span class="hljs-operator">|</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="7"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">|</span> Threads_created   <span class="hljs-operator">|</span> <span class="hljs-number">48</span>    <span class="hljs-operator">|</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="8"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">|</span> Threads_running   <span class="hljs-operator">|</span> <span class="hljs-number">1</span>     <span class="hljs-operator">|</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="9"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-operator">+</span><span class="hljs-comment">-------------------+-------+</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="10"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-number">4</span> <span class="hljs-keyword">rows</span> <span class="hljs-keyword">in</span> <span class="hljs-keyword">set</span> (<span class="hljs-number">0.00</span> sec)</div></div></li></ol></code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre> 
<p>Threads_cached &nbsp; &nbsp; 代表当前此时此刻线程缓存中有多少空闲线程。</p> 
<p>Threads_connected &nbsp;代表当前已建立连接的数量，因为一个连接就需要一个线程，所以也可以看成当前被使用的线程数。</p> 
<p>Threads_created &nbsp; &nbsp;代表从最近一次服务启动，已创建线程的数量。</p> 
<p>Threads_running &nbsp; &nbsp;代表当前激活的（非睡眠状态）线程数。并不是代表正在使用的线程数，有时候连接已建立，但是连接处于sleep状态，这里相对应的线程也是sleep状态。</p> 
<p></p>
                </div><div><div></div></div>
        </div>
        <div id="treeSkill" style="display: block;"><div class="skill-tree-box"><div class="skill-tree-head">文章知识点与官方知识档案匹配，可进一步学习相关知识</div><div class="skill-tree-body"><div class="skill-tree-item"><span class="skill-tree-href"><a data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.6866&quot;,&quot;dest&quot;:&quot;https://edu.csdn.net/skill/mysql/mysql-95d0b7e5493e478f85ca49a77a13d194&quot;}" href="https://edu.csdn.net/skill/mysql/mysql-95d0b7e5493e478f85ca49a77a13d194" target="_blank">MySQL入门技能树</a><i></i><a data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.6866&quot;,&quot;dest&quot;:&quot;https://edu.csdn.net/skill/mysql/mysql-95d0b7e5493e478f85ca49a77a13d194&quot;}" href="https://edu.csdn.net/skill/mysql/mysql-95d0b7e5493e478f85ca49a77a13d194" target="_blank">安装和登录</a><i></i><a data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.6866&quot;,&quot;dest&quot;:&quot;https://edu.csdn.net/skill/mysql/mysql-95d0b7e5493e478f85ca49a77a13d194&quot;}" href="https://edu.csdn.net/skill/mysql/mysql-95d0b7e5493e478f85ca49a77a13d194" target="_blank">安装</a></span><span class="skill-tree-con"><span class="skill-tree-count">19932</span> 人正在系统学习中</span></div></div></div></div>
    </article>
  <script>
  $(function() {
    setTimeout(function () {
      var mathcodeList = document.querySelectorAll('.htmledit_views img.mathcode');
      if (mathcodeList.length > 0) {
        var testImg = new Image();
        testImg.onerror = function () {
          mathcodeList.forEach(function (item) {
            $(item).before('<span class="img-codecogs">\\(' + item.alt + '\\)</span>');
            $(item).remove();
          })
          MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
        }
        testImg.src = mathcodeList[0].src;
      }
    }, 1000)
  })
  </script>
</div>
<div class="more-toolbox-new more-toolbox-active" id="toolBarBox">
    <div class="left-toolbox" style="position: fixed; z-index: 999; left: 451.5px; bottom: 0px; width: 1010px;">
        <div class="toolbox-left">
            <div class="profile-box"><a class="profile-href" target="_blank" href="https://blog.csdn.net/hwx865"><img class="profile-img" src="./Ubuntu 安装和使用MySQL_files/3_hwx865"><span class="profile-name">奉君逍遥</span></a></div>
            <div class="profile-attend">
                    <a class="tool-attend tool-bt-button tool-bt-attend" href="javascript:;">关注</a>
                <a class="tool-item-follow active-animation" style="display:none;">关注</a>
            </div>
        </div>
        <div class="toolbox-middle">
        <ul class="toolbox-list">
            <li class="tool-item tool-item-size tool-active is-like" id="is-like">
            <a class="tool-item-href">
                <img style="display:none;" id="is-like-imgactive-animation-like" class="animation-dom active-animation" src="./Ubuntu 安装和使用MySQL_files/tobarThumbUpactive.png" alt="">
                <img class="isactive" style="display:none" id="is-like-imgactive" src="./Ubuntu 安装和使用MySQL_files/newHeart2021Active.png" alt="">
                <img class="isdefault" style="display:block" id="is-like-img" src="./Ubuntu 安装和使用MySQL_files/newHeart2021Black.png" alt="">  
                <span id="spanCount" class="count ">
                        12
                </span>
            </a>
            <div class="tool-hover-tip"><span class="text space">点赞</span></div>
            </li>
            <li class="tool-item tool-item-size tool-active is-unlike" id="is-unlike">
            <a class="tool-item-href">
                <img class="isactive" style="margin-right:0px;display:none" id="is-unlike-imgactive" src="./Ubuntu 安装和使用MySQL_files/newUnHeart2021Active.png" alt="">
                <img class="isdefault" style="margin-right:0px;display:block" id="is-unlike-img" src="./Ubuntu 安装和使用MySQL_files/newUnHeart2021Black.png" alt="">
                <span id="unlikeCount" class="count "></span>
            </a>
            <div class="tool-hover-tip"><span class="text space">踩</span></div>
            </li>
            <li class="tool-item tool-item-size tool-active is-collection ">
            <a class="tool-item-href" href="javascript:;" data-report-click="{&quot;mod&quot;:&quot;popu_824&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4130&quot;,&quot;ab&quot;:&quot;new&quot;}">
                <img style="display:none" id="is-collection-img-collection" class="animation-dom active-animation" src="./Ubuntu 安装和使用MySQL_files/tobarCollectionActive.png" alt="">
                <img class="isdefault" id="is-collection-img" style="display:block" src="./Ubuntu 安装和使用MySQL_files/newCollectBlack.png" alt="">
                <img class="isactive" id="is-collection-imgactive" style="display:none" src="./Ubuntu 安装和使用MySQL_files/newCollectActive.png" alt="">
                <span class="count get-collection" id="get-collection">
                    65
                </span>
            </a>
            <div class="tool-hover-tip"><span class="text space">收藏</span></div>
            </li>
            <li class="tool-item tool-item-size tool-active tool-item-reward">
                <a class="tool-item-href" href="javascript:;" data-report-click="{&quot;mod&quot;:&quot;popu_830&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4237&quot;,&quot;dest&quot;:&quot;&quot;,&quot;ab&quot;:&quot;new&quot;}">
                <img class="isdefault reward-bt" id="rewardBtNew" src="./Ubuntu 安装和使用MySQL_files/newRewardBlack.png" alt="打赏">
                <span class="count"></span>
                </a>
                <div class="tool-hover-tip"><span class="text space">打赏</span></div>
            </li>
            <li class="tool-item tool-item-size tool-active tool-item-comment">
            <a class="tool-item-href go-side-comment" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.7009&quot;}">
                <img class="isdefault" src="./Ubuntu 安装和使用MySQL_files/newComment2021Black.png" alt="">
                <span class="count" style="color: rgb(153, 154, 170);">1</span>
            </a>
            <div class="tool-hover-tip"><span class="text space">评论</span></div>
            </li>
            <li class="tool-item tool-item-bar">
            </li>
            <li class="tool-item tool-item-size tool-active tool-QRcode" id="tool-share">
                <a class="tool-item-href" href="javascript:;" data-report-click="{&quot;mod&quot;:&quot;1582594662_002&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4129&quot;,&quot;ab&quot;:&quot;new&quot;}">
                    <img class="isdefault" src="./Ubuntu 安装和使用MySQL_files/newShareBlack.png" alt="">
                </a>
                <div class="QRcode" id="tool-QRcode" style="display: none;">
                    <div class="share-bg-icon icon1 icon3" id="shareBgIcon"></div>
                    <div class="share-bg-box">
                        <div class="share-content">
                            <img class="share-avatar" src="./Ubuntu 安装和使用MySQL_files/3_hwx865" alt="">
                            <div class="share-tit">Ubuntu 安装和使用MySQL</div>
                            <div class="share-dec">目录前言安装MySQL更新列表安装MySQL服务器安装MySQL客户端配置MySQL测试MySQLMySQL数据库基本使用启动MySQL数据库服务重启MySQL数据库服务停止MySQL数据库服务查看MySQL运行状态设置MySQL服务开机自启动停止MySQL服务开机自启动MySQL的配置文件配置MySQL远程登录systemctl...</div>
                            <a id="copyPosterUrl" class="url" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.7493&quot;}">复制链接</a>
                        </div>
                        <div class="share-code">
                            <div class="share-code-box" id="shareCode"><canvas width="144" height="144"></canvas><img style="display: none;"></div>
                            <div class="share-code-text">扫一扫</div>
                        </div>
                        
                    </div>
                    <div class="share-code-type"><p class="hot" data-type="hot"><span>热门</span></p><p class="vip" data-type="vip"><span>VIP</span></p></div>
                </div>
            </li>
        </ul>
        </div>
        <div class="toolbox-right">
                <div class="tool-directory">
                    <a class="bt-columnlist-show" data-id="8956701" data-free="true" data-subscribe="false" data-title="Linux" data-img="https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64" data-url="https://blog.csdn.net/hwx865/category_8956701.html" data-sum="5" data-people="0" data-price="0" data-oldprice="0" data-join="false" data-studyvip="false" data-studysubscribe="false" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.6334&quot;,&quot;extend1&quot;:&quot;专栏目录&quot;}">专栏目录</a>
                </div>
        </div>
    </div>  
</div>
<script type="text/javascript" crossorigin="" src="./Ubuntu 安装和使用MySQL_files/qrcode-7c90a92189.min.js"></script>
<script src="./Ubuntu 安装和使用MySQL_files/saved_resource(3)" type="text/javascript"></script>
<script type="text/javascript" crossorigin="" src="./Ubuntu 安装和使用MySQL_files/user-login.js"></script>
<script type="text/javascript" crossorigin="" src="./Ubuntu 安装和使用MySQL_files/collection-box.js"></script>
                <div class="first-recommend-box recommend-box ">
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/weixin_36312811/article/details/113166842">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/weixin_36312811/article/details/113166842" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6661.1&quot;,&quot;mod&quot;:&quot;popu_871&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant_t0.none-task-blog-2~default~CTRLIST~Rate-1-113166842-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;1&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_36312811/article/details/113166842&quot;}" data-report-query="spm=1001.2101.3001.6661.1&amp;utm_medium=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-1-113166842-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-1-113166842-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=1">
					<div class="left ellipsis-online ellipsis-online-1"><em>ubuntu</em> <em>mysql</em> 环境_<em>ubuntu</em>下<em>mysql</em>的环境搭建及<em>使用</em></div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/weixin_36312811" target="_blank" data-report-query="spm=1001.2101.3001.6661.1&amp;utm_medium=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-1-113166842-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-1-113166842-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=1"><span class="blog-title">weixin_36312811的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">01-19</span>
					<span class="info-block read"><img class="read-img" src="./Ubuntu 安装和使用MySQL_files/readCountWhite.png" alt="">
					78
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/weixin_36312811/article/details/113166842" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6661.1&quot;,&quot;mod&quot;:&quot;popu_871&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant_t0.none-task-blog-2~default~CTRLIST~Rate-1-113166842-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;1&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_36312811/article/details/113166842&quot;}" data-report-query="spm=1001.2101.3001.6661.1&amp;utm_medium=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-1-113166842-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-1-113166842-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=1">
				<div class="desc ellipsis-online ellipsis-online-1"><em>ubuntu</em>下<em>mysql</em>的环境搭建及<em>使用</em>环境<em>安装</em><em>使用</em>如下命令分别<em>安装</em>服务端程序，客户端程序，及客户端依赖库sudo apt-get install <em>mysql</em>-serversudo apt-get install <em>mysql</em>-clientsudo apt-get install lib<em>mysql</em>client-dev检查环境sudo netstat -tap | grep <em>mysql</em>通过上述命令检查...</div>
			</a>
		</div>
	</div>
</div>
                </div>
            <script src="./Ubuntu 安装和使用MySQL_files/pc_wap_commontools-d5fda285fa.min.js" type="text/javascript" async=""></script>
            <div class="second-recommend-box recommend-box ">
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/vXueYing/article/details/52330180">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/vXueYing/article/details/52330180" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.1&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-1-52330180-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;1&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/vXueYing/article/details/52330180&quot;}" data-report-query="spm=1001.2101.3001.6650.1&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-1-52330180-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-1-52330180-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=2">
					<div class="left ellipsis-online ellipsis-online-1"><em>Ubuntu</em> 16.04 <em>安装</em><em>使用</em><em>MySQL</em></div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/vXueYing" target="_blank" data-report-query="spm=1001.2101.3001.6650.1&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-1-52330180-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-1-52330180-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=2"><span class="blog-title">vXueYing的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">08-26</span>
					<span class="info-block read"><img class="read-img" src="./Ubuntu 安装和使用MySQL_files/readCountWhite.png" alt="">
					1万+
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/vXueYing/article/details/52330180" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.1&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-1-52330180-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;1&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/vXueYing/article/details/52330180&quot;}" data-report-query="spm=1001.2101.3001.6650.1&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-1-52330180-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-1-52330180-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=2">
				<div class="desc ellipsis-online ellipsis-online-1"><em>MySQL</em>是流行的数据库系统，下面记录了在<em>Ubuntu</em> 16.04上<em>安装</em><em>MySQL</em>步骤。如果你<em>使用</em>的是<em>Ubuntu</em> 16.04以前的版本，可以看这里：<em>Ubuntu</em> 14.04/15.10升级到<em>Ubuntu</em> 16.04 LTS。一. <em>安装</em><em>MySQL</em>1. <em>安装</em>前先更新软件包列表：$ sudo apt update2. 在<em>Ubuntu</em> 16.04上<em>安装</em><em>MySQL</em>：$ sudo apt-get instal</div>
			</a>
		</div>
	</div>
</div>
            </div>
<a id="commentBox" name="commentBox"></a>
<div id="pcCommentBox" class="comment-box comment-box-new2  login-comment-box-new" style="display:block">
		<div class="has-comment" style="display:block">
		<div class="has-comment-tit">评论<span class="count go-side-comment">1</span><span class="text go-side-comment">条</span><img class="go-side-comment more" src="./Ubuntu 安装和使用MySQL_files/commentArrowRightWhite.png" alt=""><a class="has-comment-bt-right go-side-comment focus">写评论</a></div>
			<div class="has-comment-con comment-operate-item"><div class="hot-comment-box"><a class="hot-comment-href" target="_blank" href="https://blog.csdn.net/community_717"><img src="./Ubuntu 安装和使用MySQL_files/3_community_717">programmer_ada</a><span class="hot-comment-tag">热评</span><div class="hot-comment-con">学大数据一定要学 Kafka 么？</div></div></div>
		</div>
		<div class="unhas-comment" style="display:none">
			<div class="unhas-comment-left">评论</div>
			<div class="unhas-comment-right"><a class="go-side-comment focus">写评论</a></div>
		</div>
</div>
            <div class="recommend-box insert-baidu-box recommend-box-style ">
                <div class="recommend-item-box no-index" style="display:none"></div><div class="recommend-item-box baiduSearch clearfix" data-url="https://blog.csdn.net/Dwj1212/article/details/123451649" data-type="blog" data-report-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-0-123451649-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;,\&quot;parent_index\&quot;:\&quot;0\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.1&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/Dwj1212/article/details/123451649&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;0&quot;}">	                <div class="content-box">		                <div class="content-blog display-flex">			                  <div class="title-box">				                  <a class="tit" href="https://blog.csdn.net/Dwj1212/article/details/123451649" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-0-123451649-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;,\&quot;parent_index\&quot;:\&quot;0\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.1&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/Dwj1212/article/details/123451649&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;0&quot;}" data-report-query="utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-0-123451649-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;spm=1001.2101.3001.4242.1&amp;utm_relevant_index=3">					                <div class="left ellipsis-online ellipsis-online-1"><em>ubuntu</em><em>安装</em><em>mysql</em>_一个铲屎官的博客_<em>ubuntu</em><em>安装</em><em>mysql</em></div>				                  </a>			                  </div>                    <div class="info-box display-flex">                      <div class="info display-flex">                        <span class="info-block">10-18</span>                      </div>                    </div>                  </div>                  <div class="desc-box">                    <a href="https://blog.csdn.net/Dwj1212/article/details/123451649" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-0-123451649-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;,\&quot;parent_index\&quot;:\&quot;0\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.1&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/Dwj1212/article/details/123451649&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;0&quot;}" data-report-query="utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-0-123451649-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;spm=1001.2101.3001.4242.1&amp;utm_relevant_index=3">                      <div class="desc ellipsis-online ellipsis-online-1"><em>使用</em>use <em>mysql</em>; 命令打开<em>mysql</em>命名的数据库,显示当前数据库的表:show tables; 查询user表里的数据:select * from user;(user表里是<em>mysql</em>数据库的所有账户信息) 7、配置<em>mysql</em>允许远程访问,首先编辑 /etc/<em>mysql</em>/<em>mysql</em>.conf.d/<em>mysql</em>d.cn...</div>                    </a>                  </div>                </div>              </div><div class="recommend-item-box baiduSearch clearfix" data-url="https://blog.csdn.net/pingyan158/article/details/122158113" data-type="blog" data-report-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-1-122158113-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;,\&quot;parent_index\&quot;:\&quot;0\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.2&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/pingyan158/article/details/122158113&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;1&quot;}">	                <div class="content-box">		                <div class="content-blog display-flex">			                  <div class="title-box">				                  <a class="tit" href="https://blog.csdn.net/pingyan158/article/details/122158113" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-1-122158113-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;,\&quot;parent_index\&quot;:\&quot;0\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.2&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/pingyan158/article/details/122158113&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;1&quot;}" data-report-query="utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-1-122158113-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;spm=1001.2101.3001.4242.2&amp;utm_relevant_index=4">					                <div class="left ellipsis-online ellipsis-online-1">在<em>Ubuntu</em>上<em>安装</em><em>MySQL</em>的完整指南_pingyan158的博客_<em>ubuntu</em> my...</div>				                  </a>			                  </div>                    <div class="info-box display-flex">                      <div class="info display-flex">                        <span class="info-block">10-19</span>                      </div>                    </div>                  </div>                  <div class="desc-box">                    <a href="https://blog.csdn.net/pingyan158/article/details/122158113" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-1-122158113-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;,\&quot;parent_index\&quot;:\&quot;0\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.2&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/pingyan158/article/details/122158113&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;1&quot;}" data-report-query="utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-1-122158113-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;spm=1001.2101.3001.4242.2&amp;utm_relevant_index=4">                      <div class="desc ellipsis-online ellipsis-online-1">在<em>Ubuntu</em>上<em>安装</em><em>MySQL</em>的完整指南 Let’s learn how to install <em>MySQL</em> on<em>Ubuntu</em>today. <em>MySQL</em> is a free, open-source database management <em>system</em>. This database management <em>system</em> uses Structured Query Language (SQL) to manage data ...</div>                    </a>                  </div>                </div>              </div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/weixin_42209572/article/details/98983741" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.2&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-2-98983741-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;2&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_42209572/article/details/98983741&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/weixin_42209572/article/details/98983741" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.2&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-2-98983741-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;2&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_42209572/article/details/98983741&quot;}" data-report-query="spm=1001.2101.3001.6650.2&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-2-98983741-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-2-98983741-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=5">
					<div class="left ellipsis-online ellipsis-online-1"><em>Ubuntu</em>16.04上<em>安装</em><em>MySQL</em>（详细过程）</div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/weixin_42209572" target="_blank" data-report-query="spm=1001.2101.3001.6650.2&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-2-98983741-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-2-98983741-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=5"><span class="blog-title">weixin_42209572的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">08-09</span>
					<span class="info-block read"><img class="read-img" src="./Ubuntu 安装和使用MySQL_files/readCountWhite.png" alt="">
					7万+
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/weixin_42209572/article/details/98983741" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.2&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-2-98983741-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;2&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_42209572/article/details/98983741&quot;}" data-report-query="spm=1001.2101.3001.6650.2&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-2-98983741-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-2-98983741-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=5">
				<div class="desc ellipsis-online ellipsis-online-1">一、<em>安装</em><em>MySQL</em>

1、<em>使用</em>以下命令即可进行<em>mysql</em><em>安装</em>，注意<em>安装</em>前先更新一下软件源以获得最新版本：

$ sudo apt-get update #更新软件源
$ sudo apt-get install <em>mysql</em>-server #<em>安装</em><em>mysql</em>

上述命令会<em>安装</em>以下包：
apparmor
<em>mysql</em>-client-5.7
<em>mysql</em>-common
<em>mysql</em>-server
<em>mysql</em>...</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/weixin_33966365/article/details/86193655" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.3&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-3-86193655-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;3&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_33966365/article/details/86193655&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/weixin_33966365/article/details/86193655" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.3&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-3-86193655-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;3&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_33966365/article/details/86193655&quot;}" data-report-query="spm=1001.2101.3001.6650.3&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-3-86193655-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-3-86193655-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=6">
					<div class="left ellipsis-online ellipsis-online-1"><em>Ubuntu</em> <em>安装</em><em>mysql</em><em>和</em>简单操作</div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/weixin_33966365" target="_blank" data-report-query="spm=1001.2101.3001.6650.3&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-3-86193655-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-3-86193655-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=6"><span class="blog-title">weixin_33966365的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">02-22</span>
					<span class="info-block read"><img class="read-img" src="./Ubuntu 安装和使用MySQL_files/readCountWhite.png" alt="">
					178
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/weixin_33966365/article/details/86193655" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.3&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-3-86193655-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;3&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_33966365/article/details/86193655&quot;}" data-report-query="spm=1001.2101.3001.6650.3&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-3-86193655-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-3-86193655-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=6">
				<div class="desc ellipsis-online ellipsis-online-1">　　<em>ubuntu</em>上<em>安装</em><em>mysql</em>非常简单只需要几条命令就可以完成。

　　1.&nbsp;sudo apt-get install <em>mysql</em>-server
&nbsp;
　　2.&nbsp;apt-get isntall <em>mysql</em>-client
&nbsp;







　　3. &nbsp;sudo apt-get install lib<em>mysql</em>client-dev
&nbsp;
　　<em>安装</em>过程中会提示设置密码什么的，...</div>
			</a>
		</div>
	</div>
</div><div class="recommend-item-box baiduSearch clearfix" data-url="https://blog.csdn.net/wavehaha/article/details/114730222" data-type="blog" data-report-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-4-114730222-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;,\&quot;parent_index\&quot;:\&quot;3\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.3&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/wavehaha/article/details/114730222&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;4&quot;}">	                <div class="content-box">		                <div class="content-blog display-flex">			                  <div class="title-box">				                  <a class="tit" href="https://blog.csdn.net/wavehaha/article/details/114730222" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-4-114730222-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;,\&quot;parent_index\&quot;:\&quot;3\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.3&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/wavehaha/article/details/114730222&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;4&quot;}" data-report-query="utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-4-114730222-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;spm=1001.2101.3001.4242.3&amp;utm_relevant_index=7">					                <div class="left ellipsis-online ellipsis-online-1"><em>Ubuntu</em><em>安装</em><em>MySQL</em>_wavehaha的博客_<em>ubuntu</em> <em>mysql</em></div>				                  </a>			                  </div>                    <div class="info-box display-flex">                      <div class="info display-flex">                        <span class="info-block">10-17</span>                      </div>                    </div>                  </div>                  <div class="desc-box">                    <a href="https://blog.csdn.net/wavehaha/article/details/114730222" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-4-114730222-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;,\&quot;parent_index\&quot;:\&quot;3\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.3&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/wavehaha/article/details/114730222&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;4&quot;}" data-report-query="utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-4-114730222-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;spm=1001.2101.3001.4242.3&amp;utm_relevant_index=7">                      <div class="desc ellipsis-online ellipsis-online-1">1.为了提高<em>MySQL</em><em>安装</em>的安全性,执行sudo <em>mysql</em>_secure_installation 2.在按Enter键之后,将出现的第一件事是VALIDATE PASSWORD插件提示窗口: 此步骤是为root<em>用户</em>设置安全密码,具体取决于选择的密码类型。 输入 Y并按Enter键 。 输入密码强度...</div>                    </a>                  </div>                </div>              </div><div class="recommend-item-box baiduSearch clearfix" data-url="https://blog.csdn.net/qq_47346664/article/details/120520061" data-type="blog" data-report-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-5-120520061-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;,\&quot;parent_index\&quot;:\&quot;3\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.4&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/qq_47346664/article/details/120520061&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;5&quot;}">	                <div class="content-box">		                <div class="content-blog display-flex">			                  <div class="title-box">				                  <a class="tit" href="https://blog.csdn.net/qq_47346664/article/details/120520061" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-5-120520061-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;,\&quot;parent_index\&quot;:\&quot;3\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.4&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/qq_47346664/article/details/120520061&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;5&quot;}" data-report-query="utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-5-120520061-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;spm=1001.2101.3001.4242.4&amp;utm_relevant_index=8">					                <div class="left ellipsis-online ellipsis-online-1"><em>ubuntu</em><em>安装</em><em>mysql</em>数据库_郑嘻嘻~的博客_<em>ubuntu</em><em>安装</em><em>mysql</em>...</div>				                  </a>			                  </div>                    <div class="info-box display-flex">                      <div class="info display-flex">                        <span class="info-block">10-16</span>                      </div>                    </div>                  </div>                  <div class="desc-box">                    <a href="https://blog.csdn.net/qq_47346664/article/details/120520061" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-5-120520061-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;,\&quot;parent_index\&quot;:\&quot;3\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.4&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/qq_47346664/article/details/120520061&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;5&quot;}" data-report-query="utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-5-120520061-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;spm=1001.2101.3001.4242.4&amp;utm_relevant_index=8">                      <div class="desc ellipsis-online ellipsis-online-1">一、<em>安装</em><em>MySQL</em> <em>使用</em>以下命令即可进行<em>mysql</em><em>安装</em>,注意<em>安装</em>前先更新一下软件源以获得最新版本: sudo apt-get update #更新软件源 sudo apt-get install <em>mysql</em>-server #<em>安装</em> 二、启动<em>和</em>关闭<em>mysql</em>服务器: ...</div>                    </a>                  </div>                </div>              </div>
		
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/cunchi4221/article/details/107475328" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.4&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-4-107475328-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;4&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/cunchi4221/article/details/107475328&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/cunchi4221/article/details/107475328" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.4&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-4-107475328-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;4&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/cunchi4221/article/details/107475328&quot;}" data-report-query="spm=1001.2101.3001.6650.4&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-4-107475328-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-4-107475328-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=9">
					<div class="left ellipsis-online ellipsis-online-1">在<em>Ubuntu</em>上<em>安装</em><em>MySQL</em>的完整指南</div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/cunchi4221" target="_blank" data-report-query="spm=1001.2101.3001.6650.4&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-4-107475328-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-4-107475328-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=9"><span class="blog-title">从零开始的教程世界</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">07-11</span>
					<span class="info-block read"><img class="read-img" src="./Ubuntu 安装和使用MySQL_files/readCountWhite.png" alt="">
					4667
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/cunchi4221/article/details/107475328" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.4&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-4-107475328-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;4&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/cunchi4221/article/details/107475328&quot;}" data-report-query="spm=1001.2101.3001.6650.4&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-4-107475328-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-4-107475328-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=9">
				<div class="desc ellipsis-online ellipsis-online-1">Let’s learn how to install <em>MySQL</em> on <em>Ubuntu</em> today. <em>MySQL</em> is a free, open-source database management <em>system</em>. This database management <em>system</em> uses Structured Query Language (SQL) to manage data saved in ...</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://huaweicloud.csdn.net/633550bed3efff3090b540ef.html" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.5&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~activity-5-123451649-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;5&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~activity&quot;,&quot;dest&quot;:&quot;https://huaweicloud.csdn.net/633550bed3efff3090b540ef.html&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://huaweicloud.csdn.net/633550bed3efff3090b540ef.html" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.5&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~activity-5-123451649-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;5&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~activity&quot;,&quot;dest&quot;:&quot;https://huaweicloud.csdn.net/633550bed3efff3090b540ef.html&quot;}" data-report-query="spm=1001.2101.3001.6650.5&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Eactivity-5-123451649-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Eactivity-5-123451649-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=10">
					<div class="left ellipsis-online ellipsis-online-1"><em>ubuntu</em><em>安装</em><em>mysql</em></div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/Dwj1212" target="_blank" data-report-query="spm=1001.2101.3001.6650.5&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Eactivity-5-123451649-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Eactivity-5-123451649-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=10"><span class="blog-title">Dwj1212的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">03-12</span>
					<span class="info-block read"><img class="read-img" src="./Ubuntu 安装和使用MySQL_files/readCountWhite.png" alt="">
					2万+
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://huaweicloud.csdn.net/633550bed3efff3090b540ef.html" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.5&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~activity-5-123451649-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;5&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~activity&quot;,&quot;dest&quot;:&quot;https://huaweicloud.csdn.net/633550bed3efff3090b540ef.html&quot;}" data-report-query="spm=1001.2101.3001.6650.5&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Eactivity-5-123451649-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Eactivity-5-123451649-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=10">
				<div class="desc ellipsis-online ellipsis-online-1">1、#查看有没有<em>安装</em><em>MySQL</em>：

dpkg -l | grep <em>mysql</em>

2、 <em>安装</em><em>MySQL</em>：

sudo apt install <em>mysql</em>-server

3、检查是否<em>安装</em>成功：

netstat -tap | grep <em>mysql</em>

通过上述命令检查之后，如果看到有 <em>mysql</em> 的socket处于 LISTEN 状态则表示<em>安装</em>成功。

4、登录<em>mysql</em>数据库可以通过如下命令：

<em>mysql</em> -u root -p

-u 表示选择登陆的<em>用户</em>名， -p 表示登陆的<em>用户</em>密码，现在是<em>mysql</em>数据库</div>
			</a>
		</div>
	</div>
</div><div class="recommend-item-box baiduSearch clearfix" data-url="https://blog.csdn.net/m0_67393039/article/details/123702111" data-type="blog" data-report-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-8-123702111-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;,\&quot;parent_index\&quot;:\&quot;5\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.5&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/m0_67393039/article/details/123702111&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;8&quot;}">	                <div class="content-box">		                <div class="content-blog display-flex">			                  <div class="title-box">				                  <a class="tit" href="https://blog.csdn.net/m0_67393039/article/details/123702111" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-8-123702111-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;,\&quot;parent_index\&quot;:\&quot;5\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.5&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/m0_67393039/article/details/123702111&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;8&quot;}" data-report-query="utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-8-123702111-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;spm=1001.2101.3001.4242.5&amp;utm_relevant_index=11">					                <div class="left ellipsis-online ellipsis-online-1"><em>Ubuntu</em>16.04上<em>安装</em><em>MySQL</em>(详细过程)_普通网友的博客_<em>ubuntu</em> my...</div>				                  </a>			                  </div>                    <div class="info-box display-flex">                      <div class="info display-flex">                        <span class="info-block">10-22</span>                      </div>                    </div>                  </div>                  <div class="desc-box">                    <a href="https://blog.csdn.net/m0_67393039/article/details/123702111" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-8-123702111-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;,\&quot;parent_index\&quot;:\&quot;5\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.5&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/m0_67393039/article/details/123702111&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;8&quot;}" data-report-query="utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-8-123702111-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;spm=1001.2101.3001.4242.5&amp;utm_relevant_index=11">                      <div class="desc ellipsis-online ellipsis-online-1">(3)重启<em>MySQL</em>服务。service <em>mysql</em> restart (4)登陆<em>MySQL</em>,并查看<em>MySQL</em>目前设置的编码。show variables like "char%"; 完成编码方式的修改后,即解决了sqoop导入<em>MySQL</em>中文乱码的问题。至此,<em>ubuntu</em>系统上顺利完成<em>安装</em><em>mysql</em>数据库。</div>                    </a>                  </div>                </div>              </div><div class="recommend-item-box baiduSearch clearfix" data-url="https://blog.csdn.net/m0_56510407/article/details/123458751" data-type="blog" data-report-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-9-123458751-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;,\&quot;parent_index\&quot;:\&quot;5\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.6&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/m0_56510407/article/details/123458751&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;9&quot;}">	                <div class="content-box">		                <div class="content-blog display-flex">			                  <div class="title-box">				                  <a class="tit" href="https://blog.csdn.net/m0_56510407/article/details/123458751" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-9-123458751-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;,\&quot;parent_index\&quot;:\&quot;5\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.6&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/m0_56510407/article/details/123458751&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;9&quot;}" data-report-query="utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-9-123458751-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;spm=1001.2101.3001.4242.6&amp;utm_relevant_index=12">					                <div class="left ellipsis-online ellipsis-online-1">在<em>ubuntu</em>中<em>安装</em><em>mysql</em>的过程_熠熠晨曦_的博客_乌班图<em>安装</em>...</div>				                  </a>			                  </div>                    <div class="info-box display-flex">                      <div class="info display-flex">                        <span class="info-block">10-13</span>                      </div>                    </div>                  </div>                  <div class="desc-box">                    <a href="https://blog.csdn.net/m0_56510407/article/details/123458751" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-9-123458751-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;,\&quot;parent_index\&quot;:\&quot;5\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.6&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/m0_56510407/article/details/123458751&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;9&quot;}" data-report-query="utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-9-123458751-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;spm=1001.2101.3001.4242.6&amp;utm_relevant_index=12">                      <div class="desc ellipsis-online ellipsis-online-1">1 设置好后用: <em>mysql</em> -uroot -p 1 进入数据库 总结 本文展示如何在 <em>Ubuntu</em> 20.04 上<em>安装</em> <em>MySQL</em>。现在数据库已经上线,并且运行,下一步就是学习如何管理 <em>MySQL</em> <em>用户</em><em>和</em>数据库。</div>                    </a>                  </div>                </div>              </div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/xiegongmiao/article/details/103183052" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.6&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~Rate-6-103183052-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;6&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/xiegongmiao/article/details/103183052&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/xiegongmiao/article/details/103183052" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.6&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~Rate-6-103183052-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;6&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/xiegongmiao/article/details/103183052&quot;}" data-report-query="spm=1001.2101.3001.6650.6&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-6-103183052-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-6-103183052-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=13">
					<div class="left ellipsis-online ellipsis-online-1"><em>ubuntu</em><em>安装</em><em>mysql</em>教程</div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/xiegongmiao" target="_blank" data-report-query="spm=1001.2101.3001.6650.6&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-6-103183052-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-6-103183052-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=13"><span class="blog-title">xiegongmiao的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">11-21</span>
					<span class="info-block read"><img class="read-img" src="./Ubuntu 安装和使用MySQL_files/readCountWhite.png" alt="">
					2324
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/xiegongmiao/article/details/103183052" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.6&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~Rate-6-103183052-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;6&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/xiegongmiao/article/details/103183052&quot;}" data-report-query="spm=1001.2101.3001.6650.6&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-6-103183052-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-6-103183052-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=13">
				<div class="desc ellipsis-online ellipsis-online-1"><em>ubuntu</em><em>安装</em><em>mysql</em>教程

一.首先卸载掉原来的<em>mysql</em>

第一步，依次执行下面的语句

sudo apt-get autoremove --purge <em>mysql</em>-server
sudo apt-get remove <em>mysql</em>-...</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/weixin_30883777/article/details/101667200" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.7&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~Rate-7-101667200-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;7&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_30883777/article/details/101667200&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/weixin_30883777/article/details/101667200" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.7&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~Rate-7-101667200-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;7&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_30883777/article/details/101667200&quot;}" data-report-query="spm=1001.2101.3001.6650.7&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-7-101667200-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-7-101667200-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=14">
					<div class="left ellipsis-online ellipsis-online-1"><em>ubuntu</em><em>安装</em><em>mysql</em>数据库方法</div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/weixin_30883777" target="_blank" data-report-query="spm=1001.2101.3001.6650.7&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-7-101667200-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-7-101667200-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=14"><span class="blog-title">weixin_30883777的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">08-21</span>
					<span class="info-block read"><img class="read-img" src="./Ubuntu 安装和使用MySQL_files/readCountWhite.png" alt="">
					196
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/weixin_30883777/article/details/101667200" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.7&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~Rate-7-101667200-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;7&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_30883777/article/details/101667200&quot;}" data-report-query="spm=1001.2101.3001.6650.7&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-7-101667200-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-7-101667200-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=14">
				<div class="desc ellipsis-online ellipsis-online-1">　　<em>ubuntu</em>基于linux的免费开源桌面PC操作系统，十分契合英特尔的超极本定位，支持x86、64位<em>和</em>ppc架构。一个比较流行的Linux操作系统，不仅简单易用，而且<em>和</em>Windows相容性非常好。那么在<em>ubuntu</em>中如何<em>安装</em><em>mysql</em>数据库呢?
　　在<em>ubuntu</em><em>安装</em><em>mysql</em>主要有以下两种方式：
　　1.打开<em>Ubuntu</em> Software Center，在右上角的搜索框查询my...</div>
			</a>
		</div>
	</div>
</div><div class="recommend-item-box baiduSearch clearfix" data-url="https://blog.csdn.net/qq_41375318/article/details/115693362" data-type="blog" data-report-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-12-115693362-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;,\&quot;parent_index\&quot;:\&quot;7\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.7&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/qq_41375318/article/details/115693362&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;12&quot;}">	                <div class="content-box">		                <div class="content-blog display-flex">			                  <div class="title-box">				                  <a class="tit" href="https://blog.csdn.net/qq_41375318/article/details/115693362" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-12-115693362-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;,\&quot;parent_index\&quot;:\&quot;7\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.7&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/qq_41375318/article/details/115693362&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;12&quot;}" data-report-query="utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-12-115693362-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;spm=1001.2101.3001.4242.7&amp;utm_relevant_index=15">					                <div class="left ellipsis-online ellipsis-online-1"><em>Ubuntu</em><em>安装</em><em>mysql</em>_*Major*的博客</div>				                  </a>			                  </div>                    <div class="info-box display-flex">                      <div class="info display-flex">                        <span class="info-block">10-3</span>                      </div>                    </div>                  </div>                  <div class="desc-box">                    <a href="https://blog.csdn.net/qq_41375318/article/details/115693362" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-12-115693362-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;,\&quot;parent_index\&quot;:\&quot;7\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.7&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/qq_41375318/article/details/115693362&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;12&quot;}" data-report-query="utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-12-115693362-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;spm=1001.2101.3001.4242.7&amp;utm_relevant_index=15">                      <div class="desc ellipsis-online ellipsis-online-1">U b u n t u 安 装 m y s q l <em>Ubuntu</em><em>安装</em><em>mysql</em> <em>Ubuntu</em><em>安装</em><em>mysql</em> 1.更新源 sudo apt update 1 2.<em>安装</em><em>MySql</em>服务器<em>和</em>客户端 sudo apt install <em>mysql</em>-server <em>mysql</em>-client 1 3.<em>Ubuntu</em>18.04<em>安装</em>过程中没有设置密码的环节(如果有...</div>                    </a>                  </div>                </div>              </div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/m0_56355392/article/details/121507252" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.8&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~Rate-8-121507252-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;8&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/m0_56355392/article/details/121507252&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/m0_56355392/article/details/121507252" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.8&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~Rate-8-121507252-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;8&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/m0_56355392/article/details/121507252&quot;}" data-report-query="spm=1001.2101.3001.6650.8&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-8-121507252-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-8-121507252-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=16">
					<div class="left ellipsis-online ellipsis-online-1"><em>MySQL</em>数据库</div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/m0_56355392" target="_blank" data-report-query="spm=1001.2101.3001.6650.8&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-8-121507252-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-8-121507252-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=16"><span class="blog-title">m0_56355392的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">11-29</span>
					<span class="info-block read"><img class="read-img" src="./Ubuntu 安装和使用MySQL_files/readCountWhite.png" alt="">
					97
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/m0_56355392/article/details/121507252" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.8&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~Rate-8-121507252-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;8&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/m0_56355392/article/details/121507252&quot;}" data-report-query="spm=1001.2101.3001.6650.8&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-8-121507252-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-8-121507252-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=16">
				<div class="desc ellipsis-online ellipsis-online-1">1、数据库<em>安装</em>


第一种方式：apt <em>安装</em>
sudo apt update    //更新源
sudo apt install -y  <em>mysql</em>-server






出现选项，输入密码然后ok

第二种方式：deb包<em>安装</em>

到<em>MySQL</em> :: Download <em>MySQL</em> Community Server下载对应<em>安装</em>包

2、初始化配置

sudo <em>mysql</em>_secure_installation

配置是否验证密码强度，y启用 其他键禁用，实验环境可选不启用

设置密码



MyS...</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://huaweicloud.csdn.net/63355cf5d3efff3090b54288.html" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.9&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~activity-9-123146813-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;9&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~activity&quot;,&quot;dest&quot;:&quot;https://huaweicloud.csdn.net/63355cf5d3efff3090b54288.html&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://huaweicloud.csdn.net/63355cf5d3efff3090b54288.html" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.9&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~activity-9-123146813-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;9&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~activity&quot;,&quot;dest&quot;:&quot;https://huaweicloud.csdn.net/63355cf5d3efff3090b54288.html&quot;}" data-report-query="spm=1001.2101.3001.6650.9&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Eactivity-9-123146813-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Eactivity-9-123146813-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=17">
					<div class="left ellipsis-online ellipsis-online-1"><em>Ubuntu</em><em>安装</em><em>Mysql</em>5.7</div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/y18771025420" target="_blank" data-report-query="spm=1001.2101.3001.6650.9&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Eactivity-9-123146813-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Eactivity-9-123146813-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=17"><span class="blog-title">y18771025420的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">02-26</span>
					<span class="info-block read"><img class="read-img" src="./Ubuntu 安装和使用MySQL_files/readCountWhite.png" alt="">
					8519
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://huaweicloud.csdn.net/63355cf5d3efff3090b54288.html" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.9&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~activity-9-123146813-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;9&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~activity&quot;,&quot;dest&quot;:&quot;https://huaweicloud.csdn.net/63355cf5d3efff3090b54288.html&quot;}" data-report-query="spm=1001.2101.3001.6650.9&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Eactivity-9-123146813-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Eactivity-9-123146813-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=17">
				<div class="desc ellipsis-online ellipsis-online-1">参考文章：<em>Ubuntu</em><em>安装</em><em>MySQL</em>、怎么在<em>Ubuntu</em> Linux上<em>安装</em><em>MySQL</em>
文章目录更新仓库从 <em>Ubuntu</em> 仓库<em>安装</em> <em>MySQL</em>5.7配置
更新仓库
输入sudo apt update，输入密码即可

从 <em>Ubuntu</em> 仓库<em>安装</em> <em>MySQL</em>5.7
输入sudo apt install <em>mysql</em>-server -y

<em>安装</em>完成，输入<em>mysql</em> --version查看数据库版本

<em>使用</em><em>systemctl</em> status <em>mysql</em>.service命令查看数据库是否启动

配置
为了提高<em>MySQL</em><em>安装</em></div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/freezingxu/article/details/77074075" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.10&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-10-77074075-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;10&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/freezingxu/article/details/77074075&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/freezingxu/article/details/77074075" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.10&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-10-77074075-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;10&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/freezingxu/article/details/77074075&quot;}" data-report-query="spm=1001.2101.3001.6650.10&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-10-77074075-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-10-77074075-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=18">
					<div class="left ellipsis-online ellipsis-online-1">在<em>Ubuntu</em>/Linux环境下<em>使用</em><em>MySQL</em>：启动<em>和</em>关闭<em>MySQL</em>服务</div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/freezingxu" target="_blank" data-report-query="spm=1001.2101.3001.6650.10&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-10-77074075-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-10-77074075-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=18"><span class="blog-title">女儿控老徐的专栏</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">08-10</span>
					<span class="info-block read"><img class="read-img" src="./Ubuntu 安装和使用MySQL_files/readCountWhite.png" alt="">
					5万+
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/freezingxu/article/details/77074075" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.10&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-10-77074075-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;10&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/freezingxu/article/details/77074075&quot;}" data-report-query="spm=1001.2101.3001.6650.10&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-10-77074075-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-10-77074075-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=18">
				<div class="desc ellipsis-online ellipsis-online-1">传送门：在<em>Ubuntu</em>下<em>使用</em><em>MySQL</em>：<em>安装</em><em>MySQL</em>
操作系统：<em>Ubuntu</em> 17.10 64位
<em>MySQL</em>版本：<em>MySQL</em> 5.7
一、启动<em>MySQL</em>服务

<em>使用</em>以下命令来启动<em>MySQL</em>：
service <em>mysql</em> start
顺便提一下，service包含以下一些参数：


启动完之后，<em>使用</em>以下命令可以查看<em>MySQL</em>服务的状态：
service <em>mysql</em> statu</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/m0_55935516/article/details/115701550" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.11&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-11-115701550-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;11&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/m0_55935516/article/details/115701550&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/m0_55935516/article/details/115701550" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.11&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-11-115701550-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;11&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/m0_55935516/article/details/115701550&quot;}" data-report-query="spm=1001.2101.3001.6650.11&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-11-115701550-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-11-115701550-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=19">
					<div class="left ellipsis-online ellipsis-online-1">在<em>ubuntu</em>上<em>安装</em><em>和</em><em>使用</em><em>mysql</em></div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/m0_55935516" target="_blank" data-report-query="spm=1001.2101.3001.6650.11&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-11-115701550-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-11-115701550-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=19"><span class="blog-title">m0_55935516的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">04-14</span>
					<span class="info-block read"><img class="read-img" src="./Ubuntu 安装和使用MySQL_files/readCountWhite.png" alt="">
					169
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/m0_55935516/article/details/115701550" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.11&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-11-115701550-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;11&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/m0_55935516/article/details/115701550&quot;}" data-report-query="spm=1001.2101.3001.6650.11&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-11-115701550-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-11-115701550-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=19">
				<div class="desc ellipsis-online ellipsis-online-1">在<em>ubuntu</em>上<em>使用</em>要比windows上方便的多，只需两步就行了。
第一步:
在终端上输入:sudo apt install <em>mysql</em>-server回车即可<em>安装</em><em>mysql</em>
第二步:
在终端上输入:sudo <em>mysql</em> -u root -p 按两次回车即可登入<em>mysql</em>，最开始的root<em>用户</em>是没有密码的。

...</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/James_Nan/article/details/82053430" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.12&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-12-82053430-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;12&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/James_Nan/article/details/82053430&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/James_Nan/article/details/82053430" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.12&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-12-82053430-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;12&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/James_Nan/article/details/82053430&quot;}" data-report-query="spm=1001.2101.3001.6650.12&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-12-82053430-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-12-82053430-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=20">
					<div class="left ellipsis-online ellipsis-online-1">五：在<em>Ubuntu</em> 16.04下<em>安装</em><em>MySQL</em></div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/James_Nan" target="_blank" data-report-query="spm=1001.2101.3001.6650.12&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-12-82053430-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-12-82053430-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=20"><span class="blog-title">James_Nan的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">08-25</span>
					<span class="info-block read"><img class="read-img" src="./Ubuntu 安装和使用MySQL_files/readCountWhite.png" alt="">
					3万+
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/James_Nan/article/details/82053430" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.12&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-12-82053430-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;12&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/James_Nan/article/details/82053430&quot;}" data-report-query="spm=1001.2101.3001.6650.12&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-12-82053430-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-12-82053430-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=20">
				<div class="desc ellipsis-online ellipsis-online-1">1，首先执行下面三条命令：

执行第一条命令：

sudo apt-get install <em>mysql</em>-server

如下图：



输入 y ，下载<em>安装</em>时会出现要求设置密码的界面：



输入自己想设置的密码，之后再次输入确认密码。

完成之后如下图：



执行第二条命令：

sudo apt-get install <em>mysql</em>-client

如下图：



接着执行第三条命令：

sud...</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://ljlazyl.blog.csdn.net/article/details/78669007" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.13&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-13-78669007-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;13&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~Rate&quot;,&quot;dest&quot;:&quot;https://ljlazyl.blog.csdn.net/article/details/78669007&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://ljlazyl.blog.csdn.net/article/details/78669007" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.13&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-13-78669007-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;13&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~Rate&quot;,&quot;dest&quot;:&quot;https://ljlazyl.blog.csdn.net/article/details/78669007&quot;}" data-report-query="spm=1001.2101.3001.6650.13&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-13-78669007-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-13-78669007-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=21">
					<div class="left ellipsis-online ellipsis-online-1"><em>ubuntu</em>下如何操作<em>Mysql</em>数据库(增、删、改、查)</div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/longgeaisisi" target="_blank" data-report-query="spm=1001.2101.3001.6650.13&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-13-78669007-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-13-78669007-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=21"><span class="blog-title">一颗程序猿</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">11-29</span>
					<span class="info-block read"><img class="read-img" src="./Ubuntu 安装和使用MySQL_files/readCountWhite.png" alt="">
					1万+
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://ljlazyl.blog.csdn.net/article/details/78669007" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.13&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-13-78669007-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;13&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~Rate&quot;,&quot;dest&quot;:&quot;https://ljlazyl.blog.csdn.net/article/details/78669007&quot;}" data-report-query="spm=1001.2101.3001.6650.13&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-13-78669007-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-13-78669007-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=21">
				<div class="desc ellipsis-online ellipsis-online-1"><em>ubuntu</em>下如何操作<em>Mysql</em>数据库(增、删、改、查)
一、<em>mysql</em>服务操作1、进入<em>mysql</em>数据库<em>mysql</em> -u root -p  2、查看数据库版本  <em>mysql</em>-&gt; status; 3、退出<em>mysql</em>操作 <em>mysql</em>-&gt; quit;4、启动<em>mysql</em>服务[root@szxdb etc]# service <em>mysql</em> start</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/weixx3/article/details/80782479" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.14&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~Rate-14-80782479-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;14&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixx3/article/details/80782479&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/weixx3/article/details/80782479" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.14&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~Rate-14-80782479-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;14&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixx3/article/details/80782479&quot;}" data-report-query="spm=1001.2101.3001.6650.14&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-14-80782479-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-14-80782479-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=22">
					<div class="left ellipsis-online ellipsis-online-1"><em>Ubuntu</em>18.04 <em>安装</em><em>MySQL</em></div>
					<div class="tag">热门推荐</div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/weixx3" target="_blank" data-report-query="spm=1001.2101.3001.6650.14&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-14-80782479-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-14-80782479-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=22"><span class="blog-title">Weison</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">06-23</span>
					<span class="info-block read"><img class="read-img" src="./Ubuntu 安装和使用MySQL_files/readCountWhite.png" alt="">
					32万+
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/weixx3/article/details/80782479" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.14&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~Rate-14-80782479-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;14&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixx3/article/details/80782479&quot;}" data-report-query="spm=1001.2101.3001.6650.14&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-14-80782479-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-14-80782479-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=22">
				<div class="desc ellipsis-online ellipsis-online-1"><em>Ubuntu</em>18.04 <em>安装</em><em>MySQL</em></div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/m0_67401055/article/details/124090410" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.15&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~Rate-15-124090410-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;15&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/m0_67401055/article/details/124090410&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/m0_67401055/article/details/124090410" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.15&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~Rate-15-124090410-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;15&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/m0_67401055/article/details/124090410&quot;}" data-report-query="spm=1001.2101.3001.6650.15&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-15-124090410-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-15-124090410-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=23">
					<div class="left ellipsis-online ellipsis-online-1"><em>ubuntu</em>20.04<em>安装</em><em>mysql</em>数据库</div>
					<div class="tag">最新发布</div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/m0_67401055" target="_blank" data-report-query="spm=1001.2101.3001.6650.15&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-15-124090410-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-15-124090410-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=23"><span class="blog-title">m0_67401055的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">04-11</span>
					<span class="info-block read"><img class="read-img" src="./Ubuntu 安装和使用MySQL_files/readCountWhite.png" alt="">
					3894
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/m0_67401055/article/details/124090410" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.15&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~Rate-15-124090410-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;15&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/m0_67401055/article/details/124090410&quot;}" data-report-query="spm=1001.2101.3001.6650.15&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-15-124090410-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-15-124090410-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=23">
				<div class="desc ellipsis-online ellipsis-online-1">1.<em>安装</em><em>mysql</em>数据库：
sudo apt update
sudo apt install <em>mysql</em>-server

一般<em>安装</em>完后，<em>MYSQL</em>服务都会自动启动哦。查看<em>MYSQL</em>是否正常运行：
sudo <em>systemctl</em> status <em>mysql</em>

输出如下表示<em>MYSQL</em>服务已启用并正常运行：
<em>mysql</em>.service - <em>MySQL</em> Community Server
     Loaded: loaded (/lib/<em>system</em>d/<em>system</em>/<em>mysql</em>.service; enabled; ve</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/weixin_32236881/article/details/113374283" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.16&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~Rate-16-113374283-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;16&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_32236881/article/details/113374283&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/weixin_32236881/article/details/113374283" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.16&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~Rate-16-113374283-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;16&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_32236881/article/details/113374283&quot;}" data-report-query="spm=1001.2101.3001.6650.16&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-16-113374283-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-16-113374283-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=24">
					<div class="left ellipsis-online ellipsis-online-1">apt get <em>安装</em><em>mysql</em>5.7_<em>ubuntu</em>20.04<em>安装</em><em>mysql</em>5.7版本</div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/weixin_32236881" target="_blank" data-report-query="spm=1001.2101.3001.6650.16&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-16-113374283-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-16-113374283-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=24"><span class="blog-title">weixin_32236881的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">01-26</span>
					<span class="info-block read"><img class="read-img" src="./Ubuntu 安装和使用MySQL_files/readCountWhite.png" alt="">
					1920
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/weixin_32236881/article/details/113374283" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.16&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~Rate-16-113374283-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;16&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_32236881/article/details/113374283&quot;}" data-report-query="spm=1001.2101.3001.6650.16&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-16-113374283-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-16-113374283-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=24">
				<div class="desc ellipsis-online ellipsis-online-1">默认情况下，<em>ubuntu</em>20.04版本自带的<em>mysql</em>是8.0，如果我们需要<em>安装</em>5.7版本，我们需要通过如下的方式来<em>安装</em>。1、直接下载二进制压缩包进行<em>安装</em>，解压并设置相关的参数就可以运行。2、下载5.7的源，然后通过apt install <em>mysql</em>-server=5.7.31-1<em>ubuntu</em>18.04的方式进行<em>安装</em>。3、下载5.7的deb文件，然后通过dpkg -i的方式<em>安装</em>。这里，主要讲讲后面...</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/weixin_44129085/article/details/104481986" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.17&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~Rate-17-104481986-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;17&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_44129085/article/details/104481986&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/weixin_44129085/article/details/104481986" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.17&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~Rate-17-104481986-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;17&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_44129085/article/details/104481986&quot;}" data-report-query="spm=1001.2101.3001.6650.17&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-17-104481986-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-17-104481986-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=25">
					<div class="left ellipsis-online ellipsis-online-1"><em>Ubuntu</em><em>安装</em><em>MySQL</em>8.0</div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/weixin_44129085" target="_blank" data-report-query="spm=1001.2101.3001.6650.17&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-17-104481986-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-17-104481986-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=25"><span class="blog-title">优秀的亮亮</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">02-24</span>
					<span class="info-block read"><img class="read-img" src="./Ubuntu 安装和使用MySQL_files/readCountWhite.png" alt="">
					2万+
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/weixin_44129085/article/details/104481986" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.17&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~Rate-17-104481986-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery\&quot;,\&quot;dist_request_id\&quot;:\&quot;1666667753573_04418\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1666667753573_04418&quot;,&quot;ab_strategy&quot;:&quot;recovery3moth&quot;,&quot;index&quot;:&quot;17&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~Rate&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_44129085/article/details/104481986&quot;}" data-report-query="spm=1001.2101.3001.6650.17&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-17-104481986-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-17-104481986-blog-90287715.pc_relevant_3mothn_strategy_and_data_recovery&amp;utm_relevant_index=25">
				<div class="desc ellipsis-online ellipsis-online-1"><em>Ubuntu</em><em>安装</em><em>MySQL</em>8.0
作者：Bright Xu
2020年2月24日

<em>Ubuntu</em><em>安装</em><em>MySQL</em>8.0
下载<em>MySQL</em> APT<em>安装</em>配置包<em>安装</em><em>MySQL</em> APT配置包<em>安装</em><em>MySQL</em> Server启动<em>MySQL</em>服务登录<em>MySQL</em>数据库

我们采用APT方式在<em>Ubuntu</em>系统中<em>安装</em><em>MySQL</em>，这种方式<em>安装</em>的版本都是最新的版本，目前是8.0.19，通过这种方式<em>安装</em>好之后，...</div>
			</a>
		</div>
	</div>
</div>
            </div>
<div id="recommendNps" class="recommend-nps-box common-nps-box" style="display: block;">
  <h3 class="aside-title">“相关推荐”对你有帮助么？</h3>
  <div class="aside-content">
      <ul class="newnps-list">
          <li class="newnps-item" data-type="非常没帮助">
              <div class="newnps-img-box">
                  <img class="newnps-img active" src="./Ubuntu 安装和使用MySQL_files/npsFeel1.png" alt="">
                  <img class="newnps-img default" src="./Ubuntu 安装和使用MySQL_files/npsFeelGrey1.png" alt="">
              </div>
              <div class="newnps-text">非常没帮助</div>
          </li>
          <li class="newnps-item" data-type="没帮助">
              <div class="newnps-img-box">
                  <img class="newnps-img active" src="./Ubuntu 安装和使用MySQL_files/npsFeel2.png" alt="">
                  <img class="newnps-img default" src="./Ubuntu 安装和使用MySQL_files/npsFeelGrey2.png" alt="">
              </div>
              <div class="newnps-text">没帮助</div>
          </li>
          <li class="newnps-item" data-type="一般">
              <div class="newnps-img-box">
                  <img class="newnps-img active" src="./Ubuntu 安装和使用MySQL_files/npsFeel3.png" alt="">
                  <img class="newnps-img default" src="./Ubuntu 安装和使用MySQL_files/npsFeelGrey3.png" alt="">
              </div>
              <div class="newnps-text">一般</div>
          </li>
          <li class="newnps-item" data-type="有帮助">
              <div class="newnps-img-box">
                  <img class="newnps-img active" src="./Ubuntu 安装和使用MySQL_files/npsFeel4.png" alt="">
                  <img class="newnps-img default" src="./Ubuntu 安装和使用MySQL_files/npsFeelGrey4.png" alt="">
              </div>
              <div class="newnps-text">有帮助</div>
          </li>
          <li class="newnps-item" data-type="非常有帮助">
              <div class="newnps-img-box">
                  <img class="newnps-img active" src="./Ubuntu 安装和使用MySQL_files/npsFeel5.png" alt="">
                  <img class="newnps-img default" src="./Ubuntu 安装和使用MySQL_files/npsFeelGrey5.png" alt="">
              </div>
              <div class="newnps-text">非常有帮助</div>
          </li>
      </ul>
      <div class="newnps-form-box">
      <div class="newnps-form">
          <input type="text" placeholder="请输入建议或反馈后点击提交" class="newnps-input">
          <span class="newnps-btn">提交</span>
      </div>
      </div>
  </div>
</div>            <div class="template-box">
                <span>©️2022 CSDN</span>
                <span>皮肤主题：大白</span>
                <span> 设计师：CSDN官方博客</span>
                <span>
                    <a href="https://blog.csdn.net/" class="back-home c-blue c-blue-hover c-blue-focus">返回首页</a>
                </span>
            </div>
<div class="blog-footer-bottom" style="margin-top:10px;">
        <div id="copyright-box" class="">
          <div id="csdn-copyright-footer" class="column small">
            <ul class="footer-column-t">
            <li>
              <a href="https://www.csdn.net/company/index.html#about" target="_blank">关于我们</a>
            </li>
            <li>
              <a href="https://www.csdn.net/company/index.html#recruit" target="_blank">招贤纳士</a>
            </li>
            <li><a href="https://marketing.csdn.net/questions/Q2202181741262323995" target="_blank">商务合作</a></li>
            <li><a href="https://marketing.csdn.net/questions/Q2202181748074189855" target="_blank">寻求报道</a></li>
            <li>
              <img src="./Ubuntu 安装和使用MySQL_files/tel.png" alt="">
              <span>400-660-0108</span>
            </li>
            <li>
              <img src="./Ubuntu 安装和使用MySQL_files/email.png" alt="">
              <a href="mailto:webmaster@csdn.net" target="_blank">kefu@csdn.net</a>
            </li>
            <li>
              <img src="./Ubuntu 安装和使用MySQL_files/cs.png" alt="">
              <a href="https://csdn.s2.udesk.cn/im_client/?web_plugin_id=29181" target="_blank">在线客服</a>
            </li>
            <li>
              工作时间&nbsp;8:30-22:00
            </li>
          </ul>
            <ul class="footer-column-b">
            <li><img src="./Ubuntu 安装和使用MySQL_files/badge.png" alt=""><a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11010502030143" rel="noreferrer" target="_blank">公安备案号11010502030143</a></li>
            <li><a href="http://beian.miit.gov.cn/publish/query/indexFirst.action" rel="noreferrer" target="_blank">京ICP备19004658号</a></li>
            <li><a href="https://csdnimg.cn/release/live_fe/culture_license.png" rel="noreferrer" target="_blank">京网文〔2020〕1039-165号</a></li>
            <li><a href="https://csdnimg.cn/cdn/content-toolbar/csdn-ICP.png" target="_blank">经营性网站备案信息</a></li>
            <li><a href="http://www.bjjubao.org/" target="_blank">北京互联网违法和不良信息举报中心</a></li>
            <li><a href="https://download.csdn.net/tutelage/home" target="_blank">家长监护</a></li>
            <li><a href="http://www.cyberpolice.cn/" target="_blank">网络110报警服务</a></li>
            <li><a href="http://www.12377.cn/" target="_blank">中国互联网举报中心</a></li>
            <li><a href="https://chrome.google.com/webstore/detail/csdn%E5%BC%80%E5%8F%91%E8%80%85%E5%8A%A9%E6%89%8B/kfkdboecolemdjodhmhmcibjocfopejo?hl=zh-CN" target="_blank">Chrome商店下载</a></li>
            <li><a href="https://blog.csdn.net/blogdevteam/article/details/126135357" target="_blank">账号管理规范</a></li>
            <li><a href="https://www.csdn.net/company/index.html#statement" target="_blank">版权与免责声明</a></li>
            <li><a href="https://blog.csdn.net/blogdevteam/article/details/90369522" target="_blank">版权申诉</a></li>
            <li><a href="https://img-home.csdnimg.cn/images/20220705052819.png" target="_blank">出版物许可证</a></li>
            <li><a href="https://img-home.csdnimg.cn/images/20210414021142.jpg" target="_blank">营业执照</a></li>
            <li>©1999-2022北京创新乐知网络技术有限公司</li>
          </ul>
          </div>
        </div>
      </div>
<script src="./Ubuntu 安装和使用MySQL_files/csdn-footer.js" data-isfootertrack="false" type="text/javascript"></script>
<script type="text/javascript">
    window.csdn.csdnFooter.options = {
        el: '.blog-footer-bottom',
        type: 2
    }
</script>        </main>
<aside class="blog_container_aside" style="position: fixed; bottom: 0px; z-index: 99; left: 143.5px; width: 300px; top: auto;">
<div id="asideProfile" class="aside-box">
    <div class="profile-intro d-flex">
        <div class="avatar-box d-flex justify-content-center flex-column">
            <a href="https://blog.csdn.net/hwx865" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_379&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4121&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865&quot;,&quot;ab&quot;:&quot;new&quot;}">
                <img src="./Ubuntu 安装和使用MySQL_files/3_hwx865" class="avatar_pic">
            </a>
        </div>
        <div class="user-info d-flex flex-column profile-intro-name-box">
            <div class="profile-intro-name-boxTop">
                <a href="https://blog.csdn.net/hwx865" target="_blank" class="" id="uid" title="奉君逍遥" data-report-click="{&quot;mod&quot;:&quot;popu_379&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4122&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865&quot;,&quot;ab&quot;:&quot;new&quot;}">
                    <span class="name " username="hwx865">奉君逍遥</span>
                </a>
                <span>
                </span>
                <span class="flag expert-blog">
                <span class="bubble">CSDN认证博客专家</span>
                </span>
                <span class="flag company-blog">
                <span class="bubble">CSDN认证企业博客</span>
                </span>
            </div>
            <div class="profile-intro-name-boxFooter">
                <span class="personal-home-page personal-home-years" title="已加入 CSDN 12年">码龄12年</span>
                    <span class="personal-home-page">
                    <a class="personal-home-certification" href="https://i.csdn.net/#/uc/profile?utm_source=14998968" target="_blank" title="暂无认证">
                    <img src="./Ubuntu 安装和使用MySQL_files/nocErtification.png" alt="">
                    暂无认证
                    </a>
                    </span>
            </div>
        </div>
    </div>
    <div class="data-info d-flex item-tiling">
        <dl class="text-center" title="32">
            <a href="https://blog.csdn.net/hwx865" data-report-click="{&quot;mod&quot;:&quot;1598321000_001&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4310&quot;}" data-report-query="t=1">  
                <dt><span class="count">32</span></dt>
                <dd class="font">原创</dd>
            </a>
        </dl>
        <dl class="text-center" data-report-click="{&quot;mod&quot;:&quot;1598321000_002&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4311&quot;}" title="19457">
            <a href="https://blog.csdn.net/rank/list/weekly" target="_blank">
                <dt><span class="count">1万+</span></dt>
                <dd class="font">周排名</dd>
            </a>
        </dl>
        <dl class="text-center" title="17822">
            <a href="https://blog.csdn.net/rank/list/total" data-report-click="{&quot;mod&quot;:&quot;1598321000_003&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4312&quot;}" target="_blank">
                <dt><span class="count">1万+</span></dt>
                <dd class="font">总排名</dd>
            </a>
        </dl>
        <dl class="text-center" style="min-width:58px" title="73766">  
            <dt><span class="count">7万+</span></dt>
            <dd>访问</dd>
        </dl>
        <dl class="text-center" title="4级,点击查看等级说明">
            <dt><a href="https://blog.csdn.net/blogdevteam/article/details/103478461" target="_blank">
                <img class="level" src="./Ubuntu 安装和使用MySQL_files/blog4.png">
            </a>
            </dt>
            <dd>等级</dd>
        </dl>
    </div>
    <div class="item-rank"></div>
    <div class="data-info d-flex item-tiling">
        <dl class="text-center" title="1032">
            <dt><span class="count">1032</span></dt>
            <dd>积分</dd>
        </dl>
         <dl class="text-center" id="fanBox" title="43">
            <dt><span class="count" id="fan">43</span></dt>
            <dd>粉丝</dd>
        </dl>
        <dl class="text-center" title="54">
            <dt><span class="count">54</span></dt>
            <dd>获赞</dd>
        </dl>
        <dl class="text-center" title="22">
            <dt><span class="count">22</span></dt>
            <dd>评论</dd>
        </dl>
        <dl class="text-center" title="257">
            <dt><span class="count">257</span></dt>
            <dd>收藏</dd>
        </dl>
    </div>
    <div class="aside-box-footer">
        <div class="badge-box d-flex">
            <div class="badge d-flex">
                <div class="icon-badge" title="持之以恒">
                    <div class="mouse-box">
                        <img class="medal-img" data-report-click="{&quot;spm&quot;:&quot;3001.4296&quot;}" src="./Ubuntu 安装和使用MySQL_files/chizhiyiheng@240.png" alt="持之以恒">
                    </div>
                </div>
                <div class="icon-badge" title="勤写标兵">
                    <div class="mouse-box">
                        <img class="medal-img" data-report-click="{&quot;spm&quot;:&quot;3001.4296&quot;}" src="./Ubuntu 安装和使用MySQL_files/qixiebiaobing4@240.png" alt="勤写标兵">
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="profile-intro-name-boxOpration">
        <div class="opt-letter-watch-box">
        <a class="bt-button personal-letter" href="https://im.csdn.net/chat/hwx865" target="_blank" rel="noopener">私信</a>
        </div>
        <div class="opt-letter-watch-box"> 
            <a class="personal-watch bt-button" id="btnAttent">关注</a>  
        </div>
    </div>
</div>
 <div id="asideSearchArticle" class="aside-box">
	<div class="aside-content search-comter">
    <div class="aside-search aside-search-blog">         
        <input type="text" class="input-serch-blog" name="" autocomplete="off" value="" id="search-blog-words" placeholder="搜博主文章">
        <a class="btn-search-blog">
                    <img src="./Ubuntu 安装和使用MySQL_files/csdn-sou.png">
        </a>
    </div>
    </div>
</div>


<div id="asideHotArticle" class="aside-box">
	<h3 class="aside-title">热门文章</h3>
	<div class="aside-content">
		<ul class="hotArticle-list">
			<li>
				<a href="https://blog.csdn.net/hwx865/article/details/83012838" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_541&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4139&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865/article/details/83012838&quot;,&quot;ab&quot;:&quot;new&quot;}">
				Android终端Termux安装NumPy、Jupyter
					<img src="./Ubuntu 安装和使用MySQL_files/readCountWhite.png" alt="">
					<span class="read">16875</span>
                </a>
			</li>
			<li>
				<a href="https://blog.csdn.net/hwx865/article/details/102693223" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_541&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4139&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865/article/details/102693223&quot;,&quot;ab&quot;:&quot;new&quot;}">
				Android终端Termux安装MariaDB/MySQL数据库
					<img src="./Ubuntu 安装和使用MySQL_files/readCountWhite.png" alt="">
					<span class="read">9593</span>
                </a>
			</li>
			<li>
				<a href="https://blog.csdn.net/hwx865/article/details/54344726" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_541&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4139&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865/article/details/54344726&quot;,&quot;ab&quot;:&quot;new&quot;}">
				Android 模拟返回键、菜单键、主页键
					<img src="./Ubuntu 安装和使用MySQL_files/readCountWhite.png" alt="">
					<span class="read">8572</span>
                </a>
			</li>
			<li>
				<a href="https://blog.csdn.net/hwx865/article/details/90287715" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_541&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4139&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865/article/details/90287715&quot;,&quot;ab&quot;:&quot;new&quot;}">
				Ubuntu 安装和使用MySQL
					<img src="./Ubuntu 安装和使用MySQL_files/readCountWhite.png" alt="">
					<span class="read">5104</span>
                </a>
			</li>
			<li>
				<a href="https://blog.csdn.net/hwx865/article/details/88311855" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_541&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4139&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865/article/details/88311855&quot;,&quot;ab&quot;:&quot;new&quot;}">
				Android设置或清除默认桌面
					<img src="./Ubuntu 安装和使用MySQL_files/readCountWhite.png" alt="">
					<span class="read">3738</span>
                </a>
			</li>
		</ul>
	</div>
</div>
<div id="asideCategory" class="aside-box flexible-box">
    <h3 class="aside-title">分类专栏</h3>
    <div class="aside-content">
        <ul>
            <li>
                <a class="clearfix special-column-name" target="_blank" href="https://blog.csdn.net/hwx865/category_9903662.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865/category_9903662.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                    <div class="special-column-bar "></div>
                    <img src="./Ubuntu 安装和使用MySQL_files/20201014180756927.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                    <span class="title oneline">
                        Web
                    </span>
                </a>
                <span class="special-column-num">5篇</span>
            </li>
            <li>
                <a class="clearfix special-column-name" target="_blank" href="https://blog.csdn.net/hwx865/category_9903661.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865/category_9903661.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                    <div class="special-column-bar "></div>
                    <img src="./Ubuntu 安装和使用MySQL_files/20201014180756928.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                    <span class="title oneline">
                        Go
                    </span>
                </a>
                <span class="special-column-num">1篇</span>
            </li>
            <li>
                <a class="clearfix special-column-name" target="_blank" href="https://blog.csdn.net/hwx865/category_2435989.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865/category_2435989.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                    <div class="special-column-bar "></div>
                    <img src="./Ubuntu 安装和使用MySQL_files/20201014180756928.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                    <span class="title oneline">
                        收藏
                    </span>
                </a>
                <span class="special-column-num">2篇</span>
            </li>
            <li>
                <a class="clearfix special-column-name" target="_blank" href="https://blog.csdn.net/hwx865/category_8559304.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865/category_8559304.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                    <div class="special-column-bar "></div>
                    <img src="./Ubuntu 安装和使用MySQL_files/20201014180756925.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                    <span class="title oneline">
                        Android
                    </span>
                </a>
                <span class="special-column-num">23篇</span>
            </li>
            <li>
                <a class="clearfix special-column-name" target="_blank" href="https://blog.csdn.net/hwx865/category_8571809.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865/category_8571809.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                    <div class="special-column-bar "></div>
                    <img src="./Ubuntu 安装和使用MySQL_files/20201014180756928.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                    <span class="title oneline">
                        UWP
                    </span>
                </a>
                <span class="special-column-num">1篇</span>
            </li>
            <li>
                <a class="clearfix special-column-name" target="_blank" href="https://blog.csdn.net/hwx865/category_8577277.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865/category_8577277.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                    <div class="special-column-bar "></div>
                    <img src="./Ubuntu 安装和使用MySQL_files/20201014180756754.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                    <span class="title oneline">
                        Flutter
                    </span>
                </a>
            </li>
            <li>
                <a class="clearfix special-column-name" target="_blank" href="https://blog.csdn.net/hwx865/category_8956701.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865/category_8956701.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                    <div class="special-column-bar "></div>
                    <img src="./Ubuntu 安装和使用MySQL_files/20201014180756928.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                    <span class="title oneline">
                        Linux
                    </span>
                </a>
                <span class="special-column-num">5篇</span>
            </li>
        </ul>
    </div>
    <p class="text-center">
        <a class="flexible-btn" data-fbox="aside-archive"><img class="look-more" src="./Ubuntu 安装和使用MySQL_files/arrowDownWhite.png" alt=""></a>
    </p>
</div>
<div id="asideNewComments" class="aside-box">
    <h3 class="aside-title">最新评论</h3>
    <div class="aside-content">
        <ul class="newcomment-list">
            <li>
                <a class="title text-truncate" target="_blank" href="https://blog.csdn.net/hwx865/article/details/105499648#comments_23694546" data-report-click="{&quot;mod&quot;:&quot;popu_542&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4231&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865/article/details/105499648#comments_23694546&quot;,&quot;ab&quot;:&quot;new&quot;}">详解什么是 Webpack</a>
                <p class="comment ellipsis">
                    <a href="https://blog.csdn.net/hwx865" class="user-name" target="_blank">奉君逍遥: </a>
                    <span class="code-comments">多谢，相互学习，可能是后面有重新修改了，目录没有重新生成的原故吧。</span>
                </p>
            </li>
            <li>
                <a class="title text-truncate" target="_blank" href="https://blog.csdn.net/hwx865/article/details/105499648#comments_23658910" data-report-click="{&quot;mod&quot;:&quot;popu_542&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4231&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865/article/details/105499648#comments_23658910&quot;,&quot;ab&quot;:&quot;new&quot;}">详解什么是 Webpack</a>
                <p class="comment ellipsis">
                    <a href="https://blog.csdn.net/community_717" class="user-name" target="_blank">programmer_ada: </a>
                    <span class="code-comments">你的文章质量不错，值得学习！但还有一点小瑕疵，具体如下：(1)使用标准目录。</span>
                </p>
            </li>
            <li>
                <a class="title text-truncate" target="_blank" href="https://blog.csdn.net/hwx865/article/details/90287715#comments_23581008" data-report-click="{&quot;mod&quot;:&quot;popu_542&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4231&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865/article/details/90287715#comments_23581008&quot;,&quot;ab&quot;:&quot;new&quot;}">Ubuntu 安装和使用MySQL</a>
                <p class="comment ellipsis">
                    <a href="https://blog.csdn.net/community_717" class="user-name" target="_blank">programmer_ada: </a>
                    <span class="code-comments">学大数据一定要学 Kafka 么？</span>
                </p>
            </li>
            <li>
                <a class="title text-truncate" target="_blank" href="https://blog.csdn.net/hwx865/article/details/88311855#comments_20535993" data-report-click="{&quot;mod&quot;:&quot;popu_542&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4231&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865/article/details/88311855#comments_20535993&quot;,&quot;ab&quot;:&quot;new&quot;}">Android设置或清除默认桌面</a>
                <p class="comment ellipsis">
                    <a href="https://blog.csdn.net/qq_17451999" class="user-name" target="_blank">qq_17451999: </a>
                    <span class="code-comments">写详细点呀。Context参数桌面来的</span>
                </p>
            </li>
            <li>
                <a class="title text-truncate" target="_blank" href="https://blog.csdn.net/hwx865/article/details/83012838#comments_17998429" data-report-click="{&quot;mod&quot;:&quot;popu_542&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4231&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865/article/details/83012838#comments_17998429&quot;,&quot;ab&quot;:&quot;new&quot;}">Android终端Termux安装NumPy、Jupyter</a>
                <p class="comment ellipsis">
                    <a href="https://blog.csdn.net/m0_61071092" class="user-name" target="_blank">南鸢梦恒: </a>
                    <span class="code-comments">运行pip install --force-reinstall --no-cache-dir jupyter出问题了</span>
                </p>
            </li>
        </ul>
    </div>
</div>
<div id="asideNewNps" class="aside-box common-nps-box" style="display: block;">
    <h3 class="aside-title">您愿意向朋友推荐“博客详情页”吗？</h3>
    <div class="aside-content">
        <ul class="newnps-list">
            <li class="newnps-item" data-type="强烈不推荐">
                <div class="newnps-img-box">
                    <img class="newnps-img active" src="./Ubuntu 安装和使用MySQL_files/npsFeel1.png" alt="">
                    <img class="newnps-img default" src="./Ubuntu 安装和使用MySQL_files/npsFeelGrey1.png" alt="">
                </div>
                <div class="newnps-text">强烈不推荐</div>
            </li>
            <li class="newnps-item" data-type="不推荐">
                <div class="newnps-img-box">
                    <img class="newnps-img active" src="./Ubuntu 安装和使用MySQL_files/npsFeel2.png" alt="">
                    <img class="newnps-img default" src="./Ubuntu 安装和使用MySQL_files/npsFeelGrey2.png" alt="">
                </div>
                <div class="newnps-text">不推荐</div>
            </li>
            <li class="newnps-item" data-type="一般般">
                <div class="newnps-img-box">
                    <img class="newnps-img active" src="./Ubuntu 安装和使用MySQL_files/npsFeel3.png" alt="">
                    <img class="newnps-img default" src="./Ubuntu 安装和使用MySQL_files/npsFeelGrey3.png" alt="">
                </div>
                <div class="newnps-text">一般般</div>
            </li>
            <li class="newnps-item" data-type="推荐">
                <div class="newnps-img-box">
                    <img class="newnps-img active" src="./Ubuntu 安装和使用MySQL_files/npsFeel4.png" alt="">
                    <img class="newnps-img default" src="./Ubuntu 安装和使用MySQL_files/npsFeelGrey4.png" alt="">
                </div>
                <div class="newnps-text">推荐</div>
            </li>
            <li class="newnps-item" data-type="强烈推荐">
                <div class="newnps-img-box">
                    <img class="newnps-img active" src="./Ubuntu 安装和使用MySQL_files/npsFeel5.png" alt="">
                    <img class="newnps-img default" src="./Ubuntu 安装和使用MySQL_files/npsFeelGrey5.png" alt="">
                </div>
                <div class="newnps-text">强烈推荐</div>
            </li>
        </ul>
        <div class="newnps-form-box">
        <div class="newnps-form">
            <input type="text" placeholder="请输入建议或反馈后点击提交" class="newnps-input">
            <span class="newnps-btn">提交</span>
        </div>
        </div>
    </div>
</div>
<div id="asideArchive" class="aside-box" style="display:block!important; width:300px;">
    <h3 class="aside-title">最新文章</h3>
    <div class="aside-content">
        <ul class="inf_list clearfix">
            <li class="clearfix">
            <a href="https://blog.csdn.net/hwx865/article/details/127321144" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_382&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4136&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865/article/details/127321144&quot;,&quot;ab&quot;:&quot;new&quot;}">Node.js 管理包器 NPM</a>
            </li>
            <li class="clearfix">
            <a href="https://blog.csdn.net/hwx865/article/details/127317562" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_382&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4136&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865/article/details/127317562&quot;,&quot;ab&quot;:&quot;new&quot;}">详细介绍 Node.js</a>
            </li>
            <li class="clearfix">
            <a href="https://blog.csdn.net/hwx865/article/details/105499648" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_382&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4136&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865/article/details/105499648&quot;,&quot;ab&quot;:&quot;new&quot;}">详解什么是 Webpack</a>
            </li>
        </ul>
        <div class="archive-bar"></div>
        <div class="archive-box">
                <div class="archive-list-item"><a href="https://blog.csdn.net/hwx865?type=blog&amp;year=2022&amp;month=10" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_538&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4138&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865?type=blog&amp;year=2022&amp;month=10&quot;}"><span class="year">2022年</span><span class="num">7篇</span></a></div>
                <div class="archive-list-item"><a href="https://blog.csdn.net/hwx865?type=blog&amp;year=2020&amp;month=08" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_538&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4138&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865?type=blog&amp;year=2020&amp;month=08&quot;}"><span class="year">2020年</span><span class="num">4篇</span></a></div>
                <div class="archive-list-item"><a href="https://blog.csdn.net/hwx865?type=blog&amp;year=2019&amp;month=11" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_538&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4138&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865?type=blog&amp;year=2019&amp;month=11&quot;}"><span class="year">2019年</span><span class="num">11篇</span></a></div>
                <div class="archive-list-item"><a href="https://blog.csdn.net/hwx865?type=blog&amp;year=2018&amp;month=12" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_538&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4138&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865?type=blog&amp;year=2018&amp;month=12&quot;}"><span class="year">2018年</span><span class="num">6篇</span></a></div>
                <div class="archive-list-item"><a href="https://blog.csdn.net/hwx865?type=blog&amp;year=2017&amp;month=05" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_538&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4138&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865?type=blog&amp;year=2017&amp;month=05&quot;}"><span class="year">2017年</span><span class="num">2篇</span></a></div>
                <div class="archive-list-item"><a href="https://blog.csdn.net/hwx865?type=blog&amp;year=2015&amp;month=12" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_538&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4138&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865?type=blog&amp;year=2015&amp;month=12&quot;}"><span class="year">2015年</span><span class="num">8篇</span></a></div>
                <div class="archive-list-item"><a href="https://blog.csdn.net/hwx865?type=blog&amp;year=2014&amp;month=12" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_538&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4138&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865?type=blog&amp;year=2014&amp;month=12&quot;}"><span class="year">2014年</span><span class="num">19篇</span></a></div>
        </div>
    </div>
</div>
	<div id="footerRightAds" class="isShowFooterAds">
		<div class="aside-box">
			<div id="kp_box_57" data-pid="57"><iframe src="./Ubuntu 安装和使用MySQL_files/saved_resource.html" frameborder="0" width="300px" height="600px" scrolling="no"></iframe><img class="pre-img-lasy" data-src="https://kunyu.csdn.net/1.png?p=57&amp;adId=1015395&amp;a=1015395&amp;c=439268&amp;k=Ubuntu 安装和使用MySQL&amp;spm=1001.2101.3001.5001&amp;articleId=90287715&amp;hk=1&amp;d=1&amp;t=3&amp;u=eabdca1e2b53411991bff3349d15202e" style="display: block;width: 0px;height: 0px;"></div>
		</div>
	</div>
    <!-- 详情页显示目录 -->
<!--文章目录-->
<div id="asidedirectory" class="aside-box">
    <div class="groupfile" id="directory">
        <h3 class="aside-title">目录</h3>
        <div class="align-items-stretch group_item">
            <div class="pos-box">
            <div class="scroll-box">
                <div class="toc-box"><ol><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t0">目录</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t1">前言</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t2">安装MySQL</a></li><li class="sub-box"><ol><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t3">更新列表</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t4">安装MySQL服务器</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t5">安装MySQL客户端</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t6">配置MySQL</a></li><li class="active"><a href="https://blog.csdn.net/hwx865/article/details/90287715#t7">测试MySQL</a></li></ol></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t8">MySQL数据库基本使用</a></li><li class="sub-box"><ol><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t9">启动MySQL数据库服务</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t10">重启MySQL数据库服务</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t11">停止MySQL数据库服务</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t12">查看MySQL运行状态</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t13">设置MySQL服务开机自启动</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t14">停止MySQL服务开机自启动</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t15">MySQL的配置文件</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t16">配置MySQL远程登录</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t17">systemctl和service的区别</a></li></ol></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t18">MySQL创建用户与授权</a></li><li class="sub-box"><ol><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t19">使用root用户登录</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t20">退出MySQL命令行</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t21">创建用户</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t22">用户授权</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t23">设置与更改用户密码</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t24">撤销用户权限</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t25">删除用户</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t26">查看用户信息</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t27">查看用户权限</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t28">查看加密的规则</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t29">修改加密方式</a></li></ol></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t30">创建数据库</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t31">删除数据库</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t32">MySQL查看信息</a></li><li class="sub-box"><ol><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t33">查看显示所有数据库</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t34">查看当前使用的数据库</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t35">查看数据库使用端口</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t36">查看数据库的表信息</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t37">查看表结构</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t38">查看表生成的DDL&nbsp;</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t39">查看Mysql数据库大小</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t40">查看数据文件存放路径</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t41">查看数据库编码</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t42">查看数据库的最大连接数</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t43">查看数据库当前连接数，并发数</a></li></ol></li></ol></div>
            </div>
            </div>
        </div>
    </div>
</div>
</aside>
<script>
	$("a.flexible-btn").click(function(){
		$(this).parents('div.aside-box').removeClass('flexible-box');
		$(this).parents("p.text-center").remove();
	})
</script>
<script type="text/javascript" src="./Ubuntu 安装和使用MySQL_files/user-tooltip.js"></script>
<script type="text/javascript" src="./Ubuntu 安装和使用MySQL_files/user-medal.js"></script>    </div>
<div class="recommend-right align-items-stretch clearfix" id="rightAside" data-type="recommend">
    <aside class="recommend-right_aside">
        <div id="recommend-right" style="position: fixed; top: 136px;">
                                <div class="programmer1Box">
                        <div id="kp_box_530" data-pid="530"><iframe src="./Ubuntu 安装和使用MySQL_files/saved_resource(4).html" frameborder="0" width="300px" height="600px" scrolling="no"></iframe><img class="pre-img-lasy" data-src="https://kunyu.csdn.net/1.png?p=530&amp;adId=1016295&amp;a=1016295&amp;c=438972&amp;k=Ubuntu 安装和使用MySQL&amp;spm=1001.2101.3001.4647&amp;articleId=90287715&amp;hk=1&amp;d=1&amp;t=3&amp;u=c74d2d579447462181dfb24079145125" style="display: block;width: 0px;height: 0px;" src="./Ubuntu 安装和使用MySQL_files/1(1).png"></div>
                    </div>
            <div class="flex-column aside-box groupfile" id="groupfile" style="display: block; max-height: 457px;">
                <div class="groupfile-div" style="max-height: 457px;">
                <h3 class="aside-title">目录</h3>
                <div class="align-items-stretch group_item">
                    <div class="pos-box">
                        <div class="scroll-box">
                            <div class="toc-box"><ol><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t0">目录</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t1">前言</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t2">安装MySQL</a></li><li class="sub-box"><ol><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t3">更新列表</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t4">安装MySQL服务器</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t5">安装MySQL客户端</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t6">配置MySQL</a></li><li class="active"><a href="https://blog.csdn.net/hwx865/article/details/90287715#t7">测试MySQL</a></li></ol></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t8">MySQL数据库基本使用</a></li><li class="sub-box"><ol><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t9">启动MySQL数据库服务</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t10">重启MySQL数据库服务</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t11">停止MySQL数据库服务</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t12">查看MySQL运行状态</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t13">设置MySQL服务开机自启动</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t14">停止MySQL服务开机自启动</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t15">MySQL的配置文件</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t16">配置MySQL远程登录</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t17">systemctl和service的区别</a></li></ol></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t18">MySQL创建用户与授权</a></li><li class="sub-box"><ol><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t19">使用root用户登录</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t20">退出MySQL命令行</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t21">创建用户</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t22">用户授权</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t23">设置与更改用户密码</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t24">撤销用户权限</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t25">删除用户</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t26">查看用户信息</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t27">查看用户权限</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t28">查看加密的规则</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t29">修改加密方式</a></li></ol></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t30">创建数据库</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t31">删除数据库</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t32">MySQL查看信息</a></li><li class="sub-box"><ol><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t33">查看显示所有数据库</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t34">查看当前使用的数据库</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t35">查看数据库使用端口</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t36">查看数据库的表信息</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t37">查看表结构</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t38">查看表生成的DDL&nbsp;</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t39">查看Mysql数据库大小</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t40">查看数据文件存放路径</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t41">查看数据库编码</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t42">查看数据库的最大连接数</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t43">查看数据库当前连接数，并发数</a></li></ol></li></ol></div>
                        </div>
                    </div>
                </div>
                </div>
            </div>
                <div id="recommendAdBox">
                    <div id="kp_box_479" data-pid="479"><div class="_gnumici5vli"><iframe id="iframeu5883818_0" name="iframeu5883818_0" src="./Ubuntu 安装和使用MySQL_files/wcsm.html" width="300" height="250" scrolling="no" frameborder="0"></iframe></div>
    <script type="text/javascript">
        (window.slotbydup = window.slotbydup || []).push({
            id: "u5883818",
            container: "_gnumici5vli",
            async: true
        });
    </script>
    <!-- 多条广告如下脚本只需引入一次 -->
    <script type="text/javascript" src="./Ubuntu 安装和使用MySQL_files/cm.js" async="async" defer="defer">
    </script><img class="pre-img-lasy" data-src="https://kunyu.csdn.net/1.png?p=479&amp;adId=1015221&amp;a=1015221&amp;c=0&amp;k=Ubuntu 安装和使用MySQL&amp;spm=1001.2101.3001.4834&amp;articleId=90287715&amp;d=1&amp;t=3&amp;u=9c83a96c1f1942f5b56acc3d966870ff" style="display: block;width: 0px;height: 0px;"></div>
                </div>
            <div class="aside-box kind_person d-flex flex-column">
                    <h3 class="aside-title">分类专栏</h3>
                    <div class="align-items-stretch kindof_item" id="kind_person_column">
                        <div class="aside-content">
                            <ul>
                                <li>
                                    <a class="clearfix special-column-name" target="_blank" href="https://blog.csdn.net/hwx865/category_9903662.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865/category_9903662.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                                        <div class="special-column-bar "></div>
                                        <img src="./Ubuntu 安装和使用MySQL_files/20201014180756927.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                                        <span class="">
                                            Web
                                        </span>
                                    </a>
                                    <span class="special-column-num">5篇</span>
                                </li>
                                <li>
                                    <a class="clearfix special-column-name" target="_blank" href="https://blog.csdn.net/hwx865/category_9903661.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865/category_9903661.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                                        <div class="special-column-bar "></div>
                                        <img src="./Ubuntu 安装和使用MySQL_files/20201014180756928.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                                        <span class="">
                                            Go
                                        </span>
                                    </a>
                                    <span class="special-column-num">1篇</span>
                                </li>
                                <li>
                                    <a class="clearfix special-column-name" target="_blank" href="https://blog.csdn.net/hwx865/category_2435989.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865/category_2435989.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                                        <div class="special-column-bar "></div>
                                        <img src="./Ubuntu 安装和使用MySQL_files/20201014180756928.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                                        <span class="">
                                            收藏
                                        </span>
                                    </a>
                                    <span class="special-column-num">2篇</span>
                                </li>
                                <li>
                                    <a class="clearfix special-column-name" target="_blank" href="https://blog.csdn.net/hwx865/category_8559304.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865/category_8559304.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                                        <div class="special-column-bar "></div>
                                        <img src="./Ubuntu 安装和使用MySQL_files/20201014180756925.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                                        <span class="">
                                            Android
                                        </span>
                                    </a>
                                    <span class="special-column-num">23篇</span>
                                </li>
                                <li>
                                    <a class="clearfix special-column-name" target="_blank" href="https://blog.csdn.net/hwx865/category_8571809.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865/category_8571809.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                                        <div class="special-column-bar "></div>
                                        <img src="./Ubuntu 安装和使用MySQL_files/20201014180756928.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                                        <span class="">
                                            UWP
                                        </span>
                                    </a>
                                    <span class="special-column-num">1篇</span>
                                </li>
                                <li>
                                    <a class="clearfix special-column-name" target="_blank" href="https://blog.csdn.net/hwx865/category_8577277.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865/category_8577277.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                                        <div class="special-column-bar "></div>
                                        <img src="./Ubuntu 安装和使用MySQL_files/20201014180756754.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                                        <span class="">
                                            Flutter
                                        </span>
                                    </a>
                                </li>
                                <li>
                                    <a class="clearfix special-column-name" target="_blank" href="https://blog.csdn.net/hwx865/category_8956701.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865/category_8956701.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                                        <div class="special-column-bar "></div>
                                        <img src="./Ubuntu 安装和使用MySQL_files/20201014180756928.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                                        <span class="">
                                            Linux
                                        </span>
                                    </a>
                                    <span class="special-column-num">5篇</span>
                                </li>
                            </ul>
                        </div>
                    </div>
            </div>
        </div>
    </aside>
</div>

<div class="recommend-right1  align-items-stretch clearfix" id="rightAsideConcision" data-type="recommend">
    <aside class="recommend-right_aside">
        <div id="recommend-right-concision" style="position: fixed; top: 136px;">
            <div class="flex-column aside-box groupfile" id="groupfileConcision">
                <div class="groupfile-div1" style="max-height: 866px;">
                <h3 class="aside-title">目录</h3>
                <div class="align-items-stretch group_item">
                    <div class="pos-box">
                        <div class="scroll-box">
                            <div class="toc-box"><ol><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t0">目录</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t1">前言</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t2">安装MySQL</a></li><li class="sub-box"><ol><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t3">更新列表</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t4">安装MySQL服务器</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t5">安装MySQL客户端</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t6">配置MySQL</a></li><li class="active"><a href="https://blog.csdn.net/hwx865/article/details/90287715#t7">测试MySQL</a></li></ol></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t8">MySQL数据库基本使用</a></li><li class="sub-box"><ol><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t9">启动MySQL数据库服务</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t10">重启MySQL数据库服务</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t11">停止MySQL数据库服务</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t12">查看MySQL运行状态</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t13">设置MySQL服务开机自启动</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t14">停止MySQL服务开机自启动</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t15">MySQL的配置文件</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t16">配置MySQL远程登录</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t17">systemctl和service的区别</a></li></ol></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t18">MySQL创建用户与授权</a></li><li class="sub-box"><ol><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t19">使用root用户登录</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t20">退出MySQL命令行</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t21">创建用户</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t22">用户授权</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t23">设置与更改用户密码</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t24">撤销用户权限</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t25">删除用户</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t26">查看用户信息</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t27">查看用户权限</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t28">查看加密的规则</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t29">修改加密方式</a></li></ol></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t30">创建数据库</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t31">删除数据库</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t32">MySQL查看信息</a></li><li class="sub-box"><ol><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t33">查看显示所有数据库</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t34">查看当前使用的数据库</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t35">查看数据库使用端口</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t36">查看数据库的表信息</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t37">查看表结构</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t38">查看表生成的DDL&nbsp;</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t39">查看Mysql数据库大小</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t40">查看数据文件存放路径</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t41">查看数据库编码</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t42">查看数据库的最大连接数</a></li><li class=""><a href="https://blog.csdn.net/hwx865/article/details/90287715#t43">查看数据库当前连接数，并发数</a></li></ol></li></ol></div>
                        </div>
                    </div>
                </div>
                </div>
            </div>
        </div>
    </aside>
</div>

</div>
<div class="mask-dark"></div>
<script src="./Ubuntu 安装和使用MySQL_files/sandalstrap.min.js"></script>
<div class="skin-boxshadow"></div>
<div class="directory-boxshadow"></div>
<div class="comment-side-box-shadow comment-side-tit-close" id="commentSideBoxshadow">
<div class="comment-side-content">
	<div class="comment-side-tit">
	<div class="comment-side-tit-count">评论&nbsp;<span class="count">1</span></div>
	<img class="comment-side-tit-close" src="./Ubuntu 安装和使用MySQL_files/closeBt.png"></div>
	<div id="pcCommentSideBox" class="comment-box comment-box-new2 " style="display:block">
		<div class="comment-edit-box d-flex">
			<div class="user-img">
				<a href="https://blog.csdn.net/u013454589" target="_blank">
					<img src="./Ubuntu 安装和使用MySQL_files/3_u013454589">
				</a>
			</div>
			<form id="commentform">
				<textarea class="comment-content" name="comment_content" id="comment_content" placeholder="欢迎高质量的评论，低质的评论会被折叠" maxlength="1000"></textarea>
				<div class="comment-operate-box">
					<div class="comment-operate-l">
						<span id="tip_comment" class="tip">还能输入<em>1000</em>个字符</span>
					</div>
					<div class="comment-operate-c">
						&nbsp;
					</div>
					<div class="comment-operate-r">
						<div class="comment-operate-item comment-emoticon">
							<img class="comment-operate-img" data-url="https://csdnimg.cn/release/blogv2/dist/pc/img/" src="./Ubuntu 安装和使用MySQL_files/commentEmotionIcon.png" alt="表情包">
							<span class="comment-operate-tip">插入表情</span>
							<div class="comment-emoticon-box comment-operate-isshow" style="display: none;">
								<div class="comment-emoticon-img-box"></div>
							</div>
						</div>
						<div class="comment-operate-item comment-code">
							<img class="comment-operate-img" data-url="https://csdnimg.cn/release/blogv2/dist/pc/img/" src="./Ubuntu 安装和使用MySQL_files/commentCodeIcon.png" alt="表情包">
							<span class="comment-operate-tip">代码片</span>
							<div class="comment-code-box comment-operate-isshow" style="display: none;">
								<ul id="commentCode">
									<li><a data-code="html">HTML/XML</a></li>
									<li><a data-code="objc">objective-c</a></li>
									<li><a data-code="ruby">Ruby</a></li>
									<li><a data-code="php">PHP</a></li>
									<li><a data-code="csharp">C</a></li>
									<li><a data-code="cpp">C++</a></li>
									<li><a data-code="javascript">JavaScript</a></li>
									<li><a data-code="python">Python</a></li>
									<li><a data-code="java">Java</a></li>
									<li><a data-code="css">CSS</a></li>
									<li><a data-code="sql">SQL</a></li>
									<li><a data-code="plain">其它</a></li>
								</ul>
							</div>
						</div>
						<div class="comment-operate-item">
							<input type="hidden" id="comment_replyId" name="comment_replyId">
							<input type="hidden" id="article_id" name="article_id" value="90287715">
							<input type="hidden" id="comment_userId" name="comment_userId" value="">
							<input type="hidden" id="commentId" name="commentId" value="">
							<a data-report-click="{&quot;mod&quot;:&quot;1582594662_003&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4227&quot;,&quot;ab&quot;:&quot;new&quot;}">
							<input type="submit" class="btn-comment btn-comment-input" value="评论">
							</a>
						</div>
					</div>
				</div>
			</form>
		</div>
		<div class="comment-list-container">
			<div class="comment-list-box comment-operate-item">
			<ul class="comment-list"><li class="comment-line-box " data-commentid="23581008" data-replyname="community_717">            <div class="comment-list-item">                <a class="comment-list-href" target="_blank" href="https://blog.csdn.net/community_717"><img src="./Ubuntu 安装和使用MySQL_files/3_community_717" username="community_717" alt="community_717" class="avatar"></a>                <div class="right-box ">                    <div class="new-info-box clearfix"><div class="comment-top"><div class="user-box"><a class="name-href" target="_blank" href="https://blog.csdn.net/community_717"> <span class="name ">programmer_ada</span></a> <span class="date" title="2022-10-10 01:32:05">2022.10.10</span><div class="opt-comment"><a class="btn-bt  btn-report"><img class="btn-report-img" src="./Ubuntu 安装和使用MySQL_files/commentLookMore.png" title=""><div class="hide-box"><span data-type="report" class="hide-item hide-report"> 举报</span></div></a><img class="comment_img_replay" src="./Ubuntu 安装和使用MySQL_files/newCommentReplyWhite.png"><a class="btn-bt  btn-reply" data-type="reply" data-flag="true">回复</a></div></div><div class="comment-like " data-commentid="23581008"><span></span><img class="comment-like-img unclickImg" src="./Ubuntu 安装和使用MySQL_files/commentLikeWhite.png" title="点赞"><img class="comment-like-img comment-like-img-hover" style="display:none" src="./Ubuntu 安装和使用MySQL_files/commentLikeHover.png" title="点赞"><img class="comment-like-img clickedImg" src="./Ubuntu 安装和使用MySQL_files/commentLikeActive.png" title="取消点赞"></div></div><div class="comment-center"><div class="new-comment">学大数据一定要学 Kafka 么？</div></div></div></div></div></li></ul></div>
			<div id="lookGoodComment" class="look-good-comment side-look-comment" style="display: none;">
				<a class="look-more-comment">查看更多评论<img src="./Ubuntu 安装和使用MySQL_files/commentArrowDownWhite.png" alt=""></a>
			</div>
			<div id="lookFlodComment" class="look-flod-comment" style="display: none;">
					<span class="count">0</span>&nbsp;条评论被折叠&nbsp;<a class="look-more-flodcomment">查看</a>
			</div>
			
		</div>
	</div>
	<div id="pcFlodCommentSideBox" class="pc-flodcomment-sidebox">
		<div class="comment-fold-tit"><span id="lookUnFlodComment" class="back"><img src="./Ubuntu 安装和使用MySQL_files/commentArrowLeftWhite.png" alt=""></span>被折叠的&nbsp;<span class="count">0</span>&nbsp;条评论
		 <a href="https://blogdev.blog.csdn.net/article/details/122245662" class="tip" target="_blank">为什么被折叠?</a>
		 <a href="https://bbs.csdn.net/forums/FreeZone" class="park" target="_blank">
		 <img src="./Ubuntu 安装和使用MySQL_files/iconPark.png">到【灌水乐园】发言</a>                                
		</div>
		<div class="comment-fold-content"></div>
		<div id="lookBadComment" class="look-bad-comment side-look-comment">
			<a class="look-more-comment">查看更多评论<img src="./Ubuntu 安装和使用MySQL_files/commentArrowDownWhite.png" alt=""></a>
		</div>
	</div>
</div>
</div>
<div id="rewardNew" class="reward-popupbox-new">
	<p class="rewad-title">打赏作者<span class="reward-close"><img src="./Ubuntu 安装和使用MySQL_files/closeBt.png"></span></p>
	<dl class="profile-box">
		<dd>
		<a href="https://blog.csdn.net/hwx865" data-report-click="{&quot;mod&quot;:&quot;popu_379&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/hwx865&quot;,&quot;ab&quot;:&quot;new&quot;}">
			<img src="./Ubuntu 安装和使用MySQL_files/3_hwx865" class="avatar_pic">
		</a>
		</dd>
		<dt>
			<p class="blog-name">奉君逍遥</p>
			<p class="blog-discript">你的鼓励将是我创作的最大动力</p>
		</dt>
	</dl>
	<div class="reward-box-new">
			<div class="reward-content"><div class="reward-right"></div></div>
	</div>
	<div class="money-box">
				<span class="choose-money choosed" data-id="2">¥2</span>
				<span class="choose-money " data-id="4">¥4</span>
				<span class="choose-money " data-id="6">¥6</span>
				<span class="choose-money " data-id="10">¥10</span>
				<span class="choose-money " data-id="20">¥20</span>
				<input id="customizeMoney" class="customize-money" name="" type="" value="" placeholder="自定义">
				<div class="customize-tip">输入1-500的整数</div>
	</div>
	<div class="pay-box">
		<div class="pay-type-blance pay-type active" data-type="blance">
			<img class="unchoose" src="./Ubuntu 安装和使用MySQL_files/newUnChoose.png" alt="">
			<img class="choose" src="./Ubuntu 安装和使用MySQL_files/newChoose.png" alt="">
			<span class="pay-type-name">余额支付</span>
			<span class="pay-type-num">(余额：-- )</span>
		</div>
		<div class="pay-type-money pay-type" data-type="money">
			<img class="unchoose" src="./Ubuntu 安装和使用MySQL_files/newUnChoose.png" alt="">
			<img class="choose" src="./Ubuntu 安装和使用MySQL_files/newChoose.png" alt="">
			<span class="pay-type-name">扫码支付</span>
		</div>
	</div>
	<div class="sure-box">
		<div class="sure-box-money">
			<div class="code-box">
				<div class="code-num-box">
					<span class="code-name">扫码支付：</span><span class="code-num">¥2</span>
				</div>
				<div class="code-img-box">
					<div class="renovate">
					<img src="./Ubuntu 安装和使用MySQL_files/pay-time-out.png">
					<span>获取中</span>
					</div>
				</div>
				<div class="code-pay-box">
					<img src="./Ubuntu 安装和使用MySQL_files/newWeiXin.png" alt="">
					<img src="./Ubuntu 安装和使用MySQL_files/newZhiFuBao.png" alt="">
					<span>扫码支付</span>
				</div>
			</div>
		</div>
		<div class="sure-box-blance">
			<p class="tip">您的余额不足，请更换扫码支付或<a target="_blank" data-report-click="{&quot;mod&quot;:&quot;1597646289_003&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4302&quot;}" href="https://i.csdn.net/#/wallet/balance/recharge?utm_source=RewardVip" class="go-invest">充值</a></p>
			<p class="is-have-money"><a class="reward-sure">打赏作者</a></p>
		</div>
	</div>
</div>
<div class="pay-code">
    <div class="pay-money">实付<span class="pay-money-span" data-nowprice="" data-oldprice="">元</span></div>
    <div class="content-blance"><a class="blance-bt" href="javascript:;">使用余额支付</a></div>
    <div class="content-code">
    <div id="payCode" data-id="">
            <div class="renovate">
                <img src="./Ubuntu 安装和使用MySQL_files/pay-time-out.png">
                <span>点击重新获取</span>
            </div>
        </div>
        <div class="pay-style"><span><img src="./Ubuntu 安装和使用MySQL_files/weixin.png"></span><span><img src="./Ubuntu 安装和使用MySQL_files/zhifubao.png"></span><span><img src="./Ubuntu 安装和使用MySQL_files/jingdong.png"></span><span class="text">扫码支付</span></div>
    </div>
    <div class="bt-close"><svg t="1567152543821" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10924" xmlns:xlink="http://www.w3.org/1999/xlink" width="12" height="12"><defs><style type="text/css"></style></defs><path d="M512 438.378667L806.506667 143.893333a52.032 52.032 0 1 1 73.6 73.621334L585.621333 512l294.485334 294.485333a52.074667 52.074667 0 0 1-73.6 73.642667L512 585.621333 217.514667 880.128a52.053333 52.053333 0 1 1-73.621334-73.642667L438.378667 512 143.893333 217.514667a52.053333 52.053333 0 1 1 73.621334-73.621334L512 438.378667z" fill="" p-id="10925"></path></svg></div>
    <!-- <p style="margin-top: 8px;font-size: 14px;" class="text-center">支付成功即可阅读</p> -->
    <div class="pay-balance">
    <input type="radio" class="pay-code-radio" data-type="details"> 
    <span class="span">钱包余额</span>
    <span class="balance" style="color:#FC5531;font-size:14px;">0</span>  
    <div class="pay-code-tile">
        <img src="./Ubuntu 安装和使用MySQL_files/pay-help.png" alt="">
        <div class="pay-code-content">
            <div class="span">
                <p class="title">抵扣说明：</p>
                <p> 1.余额是钱包充值的虚拟货币，按照1:1的比例进行支付金额的抵扣。<br> 2.余额无法直接购买下载，可以购买VIP、C币套餐、付费专栏及课程。</p>
            </div>
        </div>
    </div>
    </div>
    <a class="pay-balance-con" href="https://i.csdn.net/#/wallet/balance/recharge" target="_blank"><img src="./Ubuntu 安装和使用MySQL_files/recharge.png" alt=""><span>余额充值</span></a>
</div>
<div class="keyword-dec-box" id="keywordDecBox"></div>

    <!-- 富文本柱状图  -->
	<link rel="stylesheet" href="./Ubuntu 安装和使用MySQL_files/chart.css">
	<script type="text/javascript" src="./Ubuntu 安装和使用MySQL_files/chart.min.js"></script>
    <script type="text/javascript" src="./Ubuntu 安装和使用MySQL_files/widget2chart.js"></script>
<script src="./Ubuntu 安装和使用MySQL_files/pc_wap_highlight-2a2586c533.min.js" type="text/javascript"></script>
<script src="./Ubuntu 安装和使用MySQL_files/pc_wap_common-fbcbe8567e.min.js" type="text/javascript"></script>
<script src="./Ubuntu 安装和使用MySQL_files/edit_copy_code-ce0f06f94b.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="./Ubuntu 安装和使用MySQL_files/atom-one-light.css">
<script src="./Ubuntu 安装和使用MySQL_files/user-accusation.js" type="text/javascript"></script>
<script>
 // 全局声明
 if (window.csdn === undefined) {
      window.csdn = {};
    }
    window.csdn.sideToolbar = {
        options: {
            report:{
                isShow: true,
            },
            qr: {
                isShow: false,
            },
            guide: {
                isShow: true
            }
        }
    }
    $(function(){
        $(document).on('click',"a.option-box[data-type='report']",function() {
            window.csdn.userLogin.loadAjax(function(res){
                window.csdn.feedback({
                    "type":'blog',
                    "rtype":'article',
                    "rid":articleId,
                    "reportedName":username,
                    "submitOptions":{
                        "title":articleTitle,
                        "contentUrl":articleDetailUrl
                    },
                    "callback":function(){
                        showToast({
                            text: "感谢您的举报，我们会尽快审核！",
                            bottom: '10%', 
                            zindex: 9000, 
                            speed: 500,
                            time: 1500
                        });
                    }
                })
            })
        });
    })
</script>
    <script src="./Ubuntu 安装和使用MySQL_files/baidu-search.js" type="text/javascript"></script>
<script src="./Ubuntu 安装和使用MySQL_files/qrcode.js"></script>
<script src="./Ubuntu 安装和使用MySQL_files/qrcode.min.js"></script>
<script src="./Ubuntu 安装和使用MySQL_files/user-ordercart.js" type="text/javascript"></script>
<script src="./Ubuntu 安装和使用MySQL_files/user-ordertip.js" type="text/javascript"></script>
<script src="./Ubuntu 安装和使用MySQL_files/order-payment.js" type="text/javascript"></script>
<script src="./Ubuntu 安装和使用MySQL_files/common-a1dfbf1dc3.min.js" type="text/javascript"></script>
<script src="./Ubuntu 安装和使用MySQL_files/detail-bff68f3fa1.min.js" type="text/javascript"></script>
<script src="./Ubuntu 安装和使用MySQL_files/column-2e5cf567c5.min.js" type="text/javascript"></script>
<script src="./Ubuntu 安装和使用MySQL_files/side-toolbar.js" type="text/javascript"></script>
<script src="./Ubuntu 安装和使用MySQL_files/copyright.js" type="text/javascript"></script>
<script>
    $(".MathJax").remove();
    if ($('div.markdown_views pre.prettyprint code.hljs').length > 0) {
        $('div.markdown_views')[0].className = 'markdown_views';
    }
</script>
<script type="text/javascript" src="./Ubuntu 安装和使用MySQL_files/MathJax.js"></script>
<script type="text/x-mathjax-config;executed=true">
    MathJax.Hub.Config({
            "HTML-CSS": {
                    linebreaks: { automatic: true, width: "94%container" },
                    imageFont: null
            },
            tex2jax: {
                preview: "none",
                ignoreClass:"title-article"
            },
            mml2jax: {
                preview: 'none'
            }
    });
</script>
<script type="text/javascript" crossorigin="" src="./Ubuntu 安装和使用MySQL_files/csdn-login-box.js"></script>
<div id="pointDivs"><div class="point-outer point-pre"><div class="point-inner"></div></div><div class="point-outer point-pre"><div class="point-inner"></div></div><div class="point-outer point-pre"><div class="point-inner"></div></div><div class="point-outer point-pre"><div class="point-inner"></div></div><div class="point-outer point-pre"><div class="point-inner"></div></div></div><div id="st_mask" onclick="closeMask()" style="width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); position: fixed; left: 0px; top: 0px; display: none; z-index: 1;"></div><div id="st_confirmBox" style="width: 360px; position: fixed; text-align: left; display: none; z-index: 100; inset: 0px; height: 208px; margin: auto;"><div id="st_confirm" style="background: rgb(255, 255, 255); border-radius: 4px; overflow: hidden; padding: 24px; width: 360px; height: 208px;"><span id="st_confirm_tit" style="width: 100%; max-height: 24px; font-size: 18px; font-weight: 500; color: rgb(34, 34, 38); line-height: 24px; text-align: left; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;"></span><span id="st_confirm_text" style="text-align: left; height: 44px; font-size: 14px; font-weight: 400; color: rgb(85, 86, 102); line-height: 22px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; text-overflow: ellipsis; -webkit-line-clamp: 2; margin-top: 16px; margin-bottom: 40px;"></span><span class="st_confirm_btn success" style="background: rgb(252, 85, 51); color: rgb(255, 255, 255); text-align: center; display: block; width: 88px; height: 36px; line-height: 36px; margin-left: 16px; float: right; border-radius: 18px;">确定</span><span class="st_confirm_btn cancel" style="color: rgb(34, 34, 38); text-align: center; display: block; width: 88px; height: 36px; line-height: 36px; margin-left: 16px; float: right; box-sizing: border-box; border: 1px solid rgb(204, 204, 216); border-radius: 18px;">取消</span><span id="st_confirm_close" style="display: block; width: 12px; height: 12px; position: absolute; text-align: center; z-index: 100; top: 24px; right: 24px;"><img src="./Ubuntu 安装和使用MySQL_files/closeBt.png" style="display: block; width: 12px; height: 12px;"></span><div style="clear: both; display: block;"></div></div></div><div id="st_alertBox" style="width: 100%; position: fixed; left: 0px; top: 34%; text-align: center; display: none; z-index: 2;"><div id="st_alert" style="width: 80%; margin: 0px auto; background: rgb(255, 255, 255); border-radius: 2px; overflow: hidden; padding-top: 20px; text-align: center;"><span id="st_alert_text" style="background: rgb(255, 255, 255); overflow: hidden; padding: 15px 8px 30px; text-align: center; display: block;"></span><span id="st_alert_btn" onclick="closeMask()" style="background: rgb(27, 121, 248); color: rgb(255, 255, 255); padding: 8px; text-align: center; display: block; width: 72%; margin: 0px auto 20px; border-radius: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;"></span></div></div><div id="st_toastBox" style="width: 100%; position: fixed; left: 0px; bottom: 10%; text-align: center; display: none;"><span id="st_toastContent" style="color: rgb(255, 255, 255); background: rgba(0, 0, 0, 0.8); padding: 8px 24px; border-radius: 4px; max-width: 80%; display: inline-block; font-size: 16px;"></span></div> <div class="report-box">  <div class="pos-boxer">      <div class="pos-content">          <div class="box-title">              <p>举报</p>              <img class="icon btn-close" src="./Ubuntu 安装和使用MySQL_files/closeBlack.png">          </div>          <div class="box-header">              <div class="box-top"><span>选择你想要举报的内容（必选）</span></div>              <div class="box-botoom">                  <ul>                      <li data="1" type="nei">内容涉黄</li>                      <li data="2" type="nei">政治相关</li>                      <li data="3" type="nei">内容抄袭</li>                      <li data="4" type="nei">涉嫌广告</li>                      <li data="5" type="nei">内容侵权</li>                      <li data="6" type="nei">侮辱谩骂</li>                      <li data="8" type="nei">样式问题</li>                      <li data="7" type="nei">其他</li>                  </ul>              </div>          </div>          <div>          <div class="box-content">          </div>          <div class="box-content">          </div>                    <div class="box-content" style="display:none;">                  <div class="box-content-top">                          <span>原文链接（必填）</span>                      </div>                      <div class="box-content-bottom" style="padding-bottom: 16px;">                        <div class="box-input" style="height: 32px;line-height: 32px;">                        <input class="content-input" type="text" id="originalurl" name="originalurl" placeholder="请输入被侵权原文链接">                        </div>                      </div>          </div>          <div class="box-content">          </div>          <div class="box-content" style="display:none;">                  <div class="box-content-top">                          <span>请选择具体原因（必选）</span>                      </div>                  <div class="box-content-bottom">                          <ul>                              <li sub_type="1">包含不实信息</li>                              <li sub_type="2">涉及个人隐私</li>                          </ul>                      </div>          </div>          <div class="box-content" style="display:none;">                  <div class="box-content-top">                          <span>请选择具体原因（必选）</span>                      </div>                  <div class="box-content-bottom">                          <ul>                              <li sub_type="1">侮辱谩骂</li>                              <li sub_type="2">诽谤</li>                          </ul>                  </div>          </div>          <div class="box-content" style="display:none;">                <div class="box-content-top">                        <span>请选择具体原因（必选）</span>                    </div>                <div class="box-content-bottom">                        <ul>                            <li sub_type="1">搬家样式</li>                            <li sub_type="2">博文样式</li>                        </ul>                </div>          </div>          <div class="box-content" style="display:none;">          </div>          </div>            <div id="cllcont" style="display:none;">            <div class="box-content-top">              <span class="box-content-span">补充说明（选填）</span>            </div>                <div class="box-content-bottom">                  <div class="box-input">                    <textarea class="ipt ipt-textarea" style="padding:0;" name="description" placeholder="请详细描述您的举报内容"></textarea>                  </div>                </div>            </div>            </div>      <div class="pos-footer">          <p class="btn-close">取消</p>          <p class="box-active">确定</p>      </div>  </div></div><div class="imgViewDom disnone" style="display: none;"><img src="https://blog.csdn.net/hwx865/article/details/90287715" style="width: 523px;"></div><style>.imgViewDom{display:none;position:fixed;top:0;left:0;height:100%;width:100%;z-index:99999999;background: rgba(255, 255, 255,0.8);overflow: auto;display:-webkit-box;-webkit-box-align:center;-webkit-box-pack:center;display:-moz-box;-moz-box-align:center;-moz-box-pack:center;display:-o-box;-o-box-align:center;-o-box-pack:center;display:-ms-box;-ms-box-align:center;-ms-box-pack:center; display:box;box-align:center;box-pack:center;}.imgViewDom img{cursor: zoom-out;}</style><div>
  <div class="csdn-side-toolbar " style="left: 1777.5px;"><div class="csdn-common-logo-advert">
      <img class="logo-advert-close" src="./Ubuntu 安装和使用MySQL_files/1666168836091.png">
      <img class="logo-advert-back link-img" src="./Ubuntu 安装和使用MySQL_files/1666149376891.gif">
      <div class="logo-advert-bubble"><img class="link-img" src="./Ubuntu 安装和使用MySQL_files/1666333843863.png"></div>
    <img class="pre-img-lasy" data-src="https://kunyu.csdn.net/1.png?p=932&amp;adId=1016044&amp;a=1016044&amp;c=439609&amp;k=-&amp;spm=3001.9017&amp;d=1&amp;t=3&amp;u=b312a0c7237041a5a3edf2ed84e39e3c" style="display: block;width: 0px;height: 0px;" src="./Ubuntu 安装和使用MySQL_files/1(2).png"></div><a class="option-box directory directory-show" data-type="show" style="display:flex" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.7790&quot;}">        <img src="./Ubuntu 安装和使用MySQL_files/iconShowDirectory.png" alt="" srcset=""><img style="display:block" class="icon-option-beta" src="./Ubuntu 安装和使用MySQL_files/iconSideBeta.png" alt="" srcset="">        <span class="show-txt">只看<br>目录</span>      </a><a class="option-box directory directory-hide" data-type="hide" style="display: none;" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.7791&quot;}">        <img src="./Ubuntu 安装和使用MySQL_files/iconHideDirectory.png" alt="" srcset=""><img style="display:block" class="icon-option-beta" src="./Ubuntu 安装和使用MySQL_files/iconSideBeta.png" alt="" srcset="">        <span class="show-txt">隐藏<br>目录</span>      </a><a class="option-box sidecolumn sidecolumn-show" data-type="show" style="display: none;" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.7788&quot;}">        <img src="./Ubuntu 安装和使用MySQL_files/iconShowSide.png" alt="" srcset=""><img style="display:block" class="icon-option-beta" src="./Ubuntu 安装和使用MySQL_files/iconSideBeta.png" alt="" srcset="">        <span class="show-txt">显示<br>侧栏</span>      </a><a class="option-box sidecolumn sidecolumn-hide" data-type="hide" style="display:flex" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.7789&quot;}">        <img src="./Ubuntu 安装和使用MySQL_files/iconHideSide.png" alt="" srcset=""><img style="display:block" class="icon-option-beta" src="./Ubuntu 安装和使用MySQL_files/iconSideBeta.png" alt="" srcset="">        <span class="show-txt">隐藏<br>侧栏</span>      </a>
    
    <a class="option-box" data-type="guide">
      <img src="./Ubuntu 安装和使用MySQL_files/guide.png" alt="" srcset="">
      <span class="show-txt">新手<br>引导</span>
    </a>
    
    
    
    
    
    <a class="option-box" data-type="cs">
      <img src="./Ubuntu 安装和使用MySQL_files/kefu.png" alt="" srcset="">
      <span class="show-txt">客服</span>
    </a>
    
    
    
    <a class="option-box" data-type="report">
      <span class="show-txt" style="display:flex;opacity:100;">举报</span>
    </a>
    
    
    <a class="option-box" data-type="gotop">
      <img src="./Ubuntu 安装和使用MySQL_files/fanhuidingbucopy.png" alt="" srcset="">
      <span class="show-txt">返回<br>顶部</span>
    </a>
    
  </div>
  </div><svg aria-hidden="true" style="position: absolute; width: 0px; height: 0px; overflow: hidden;"><symbol id="sousuo" viewBox="0 0 1024 1024"><path d="M719.6779726 653.55865555l0.71080936 0.70145709 191.77828505 191.77828506c18.25658185 18.25658185 18.25658185 47.86273439 0 66.12399318-18.26593493 18.26125798-47.87208744 18.26125798-66.13334544 0l-191.77828505-191.77828506c-0.2338193-0.2338193-0.4676378-0.4676378-0.69678097-0.71081014-58.13206223 44.25257003-130.69075187 70.51978897-209.38952657 70.51978894C253.06424184 790.19776156 98.14049639 635.27869225 98.14049639 444.17380511S253.06424184 98.14049639 444.16912898 98.14049639c191.10488633 0 346.02863258 154.92374545 346.02863259 346.02863259 0 78.6987747-26.27189505 151.25746514-70.51978897 209.38952657z m-275.50884362 43.11621045c139.45428506 0 252.50573702-113.05145197 252.50573702-252.50573702s-113.05145197-252.50573702-252.50573702-252.50573783-252.50573702 113.05145197-252.50573783 252.50573783 113.05145197 252.50573702 252.50573783 252.50573702z"></path></symbol><symbol id="gonggong_csdnlogo_" viewBox="0 0 4096 1024"><path d="M1234.16069807 690.46341551c62.96962316 23.02318413 194.30703694 45.91141406 300.51598128 45.91141406 114.44114969 0 178.13952547-31.68724287 183.2407937-80.86454822 4.642424-44.8587714-42.21366937-50.93170978-171.44579784-81.53931916-178.57137886-43.77913792-292.49970264-111.55313011-281.32549604-219.86735976 12.9825927-125.75031047 181.27046257-220.78504823 439.49180199-220.78504822 125.88526465 0 247.93783044 8.87998544 311.17736197 29.60894839l-21.7006331 158.57116851c-41.05306337-14.27815288-198.1937175-34.11641822-304.48363435-34.11641822-107.7744129 0-163.56447339 33.90049151-167.42416309 71.06687432-4.85835069 47.04502922 51.14763648 49.23128703 191.14910897 86.50563321 189.58364043 48.09767188 272.47250144 115.81768239 261.6221849 220.81203906-12.71268432 123.51007099-164.13128096 228.53141851-466.48263918 228.53141851-125.85827383 0-234.33444849-22.96920244-294.09216204-45.93840492l19.730302-157.86940672zM3010.8325562 172.75216735c688.40130256-129.79893606 747.80813523 103.42888812 726.53935551 309.80082928l-40.08139323 381.78539207h-218.51781789l36.57258439-348.20879061c7.90831529-76.68096846 57.13960232-226.66905073-180.54170997-221.05495659-82.26807176 1.99732195-123.05122675 13.2794919-123.05122677 13.27949188s-7.15257186 92.65954408-15.81663059 161.13529804l-41.43093509 394.84895728h-214.3072473l42.53755943-389.15389062 28.09746151-302.43233073z m-869.48282929-18.05687008c49.12332368-5.34418577 124.58970448-10.76934404 228.45044598-10.76934405 173.38913812 0 313.57954648 30.17575597 400.38207891 93.63121421 77.94953781 59.16391512 129.82592689 154.95439631 115.4668015 293.74128117-13.25250106 129.15115596-80.405704 219.57046055-178.16651631 275.4954752-89.44763445 52.74009587-202.16137055 75.27744492-371.66382812 75.27744493-99.94707012 0-195.27870708-5.39816743-267.77609576-16.14052064L2141.37671774 154.69529727z m143.26736381 569.85754561c16.70732823 3.23890047 38.67786969 6.45081009 81.99816339 6.45081009 173.44311979 0 295.7386031-85.23706385 308.01943403-205.07638097 17.84094339-173.2271931-90.63523129-233.79463176-273.39018992-232.74198912-23.67096422 0-56.57279475 0-73.98188473 3.1849188l-42.6725136 428.15565036z" fill="#262626"></path><path d="M1109.8678928 870.30336371c-41.10704503 14.25116203-126.26313639 23.96786342-245.23874671 23.96786342-342.13585224 0-526.8071603-160.59548129-504.97157302-372.90540663C385.78470347 268.40769434 659.36382925 126.08500985 958.9081404 126.08500985c116.00661824 0 184.32042718 9.33882968 248.31570215 24.99351522l-20.5400271 170.42014604c-42.56455024-14.33213455-142.32268451-27.50366309-223.07926938-27.50366311-176.25016686 0-325.94134993 52.49717834-343.10752238 218.57179958-15.30380469 148.50358623 89.7715245 219.48948804 288.04621451 219.48948804 69.0155707 0 170.77102691-9.8786464 217.81605614-24.15679928l-16.49140154 162.40386737z" fill="#CA0C16"></path></symbol><symbol id="gonggong_csdnlogodanse_" viewBox="0 0 4096 1024"><path d="M1229.41995733 690.46341551c62.96962316 23.02318413 194.30703694 45.91141406 300.51598128 45.91141406 114.44114969 0 178.13952547-31.68724287 183.2407937-80.86454822 4.642424-44.8587714-42.21366937-50.93170978-171.44579784-81.53931916-178.57137886-43.77913792-292.49970264-111.55313011-281.32549604-219.86735976 12.9825927-125.75031047 181.27046257-220.78504823 439.49180199-220.78504822 125.88526465 0 247.93783044 8.87998544 311.17736197 29.60894839l-21.7006331 158.57116851c-41.05306337-14.27815288-198.1937175-34.11641822-304.48363435-34.11641822-107.7744129 0-163.56447339 33.90049151-167.42416309 71.06687432-4.85835069 47.04502922 51.14763648 49.23128703 191.14910897 86.50563321 189.58364043 48.09767188 272.47250144 115.81768239 261.6221849 220.81203906-12.71268432 123.51007099-164.13128096 228.53141851-466.48263918 228.53141851-125.85827383 0-234.33444849-22.96920244-294.09216204-45.93840492l19.730302-157.86940672zM3006.09181546 172.75216735c688.40130256-129.79893606 747.80813523 103.42888812 726.53935551 309.80082928l-40.08139323 381.78539207h-218.51781789l36.57258439-348.20879061c7.90831529-76.68096846 57.13960232-226.66905073-180.54170997-221.05495659-82.26807176 1.99732195-123.05122675 13.2794919-123.05122677 13.27949188s-7.15257186 92.65954408-15.81663059 161.13529804l-41.43093509 394.84895728h-214.3072473l42.53755943-389.15389062 28.09746151-302.43233073z m-869.48282929-18.05687008c49.12332368-5.34418577 124.58970448-10.76934404 228.45044598-10.76934405 173.38913812 0 313.57954648 30.17575597 400.38207891 93.63121421 77.94953781 59.16391512 129.82592689 154.95439631 115.4668015 293.74128117-13.25250106 129.15115596-80.405704 219.57046055-178.16651631 275.4954752-89.44763445 52.74009587-202.16137055 75.27744492-371.66382812 75.27744493-99.94707012 0-195.27870708-5.39816743-267.77609576-16.14052064L2136.635977 154.69529727z m143.26736381 569.85754561c16.70732823 3.23890047 38.67786969 6.45081009 81.99816339 6.45081009 173.44311979 0 295.7386031-85.23706385 308.01943403-205.07638097 17.84094339-173.2271931-90.63523129-233.79463176-273.39018992-232.74198912-23.67096422 0-56.57279475 0-73.98188473 3.1849188l-42.6725136 428.15565036z m-1174.74919792 145.75052083c-41.10704503 14.25116203-126.26313639 23.96786342-245.23874671 23.96786342-342.13585224 0-526.8071603-160.59548129-504.97157303-372.90540663C381.04396273 268.40769434 654.62308851 126.08500985 954.16739966 126.08500985c116.00661824 0 184.32042718 9.33882968 248.31570215 24.99351522l-20.5400271 170.42014604c-42.56455024-14.33213455-142.32268451-27.50366309-223.07926938-27.50366311-176.25016686 0-325.94134993 52.49717834-343.10752238 218.57179958-15.30380469 148.50358623 89.7715245 219.48948804 288.04621451 219.48948804 69.0155707 0 170.77102691-9.8786464 217.81605614-24.15679928l-16.49140154 162.40386737z"></path></symbol><symbol id="xieboke1" viewBox="0 0 1024 1024"><path d="M204.70021457 751.89799169h657.99199211a33.6932867 33.6932867 0 0 1 0 67.33536736H163.68452703a33.53966977 33.53966977 0 0 1-18.74125054-5.68382181c-18.63883902-9.4218307-18.17798882-29.44322156-15.20806401-39.17228615C199.0675982 570.27171976 309.41567149 409.58853908 435.38145354 290.12586836A243.22661203 243.22661203 0 0 1 536.97336934 234.20935065c138.10150976-33.79569759 228.3257813-29.95527721 318.60125827-28.52152054-17.15387692 20.48224105-36.20236071 41.6301547-57.29906892 62.93168529-3.1747472 3.22595323-164.67721739 19.91897936-187.97576692 47.05794871-23.29854894 27.13896932 129.60138005 7.37360691 125.19769798 11.11161576-21.6599699 18.33160576-44.90731339 36.4071831-69.94685287 53.8682939-4.50609297 3.1747472-149.52035944-0.35843931-174.61110436 27.85584737-25.19315641 28.16308124 101.89914903 18.12678338 96.0617103 21.40394206-67.43777825 37.63611797-125.96578207 64.62147036-212.70807253 93.8086635-57.65750823 19.4069231-121.8181284 133.13456658-146.5504346 179.06599187a435.75967738 435.75967738 0 0 0-23.04252112 49.10617311z" fill="#CA0C16"></path></symbol><symbol id="gitchat" viewBox="0 0 1024 1024"><path d="M892.08971773 729.08552746h-108.597062v-162.89559374H403.40293801v-108.59706198h488.68677972v271.49265572z m-651.58237345 54.298531V783.49265572h488.68678045v108.59706201H131.91028227V131.91028227h760.17943546v217.19412473h-108.597062V240.50734428H240.50734428v542.87671418z m542.98531145 0h108.597062v108.59706199h-108.597062v-108.59706199z" fill="#FF9100"></path></symbol><symbol id="toolbar-memberhead" viewBox="0 0 1303 1024"><path d="M1061.51168438 433.79527648A78.51879902 78.51879902 0 1 1 1129.35192643 472.74060007h-1.80593246l-48.05350474 403.97922198c-4.55409058 38.16013652-39.41643684 67.133573-80.79584389 67.13357302H319.35199503c-41.30088817 0-76.00619753-28.81639958-80.717325-66.97653526L189.01078861 472.74060007H187.12633728a78.51879902 78.51879902 0 1 1 67.76172401-38.86680556l193.31328323 119.81968805 158.13686148-336.06046024A78.5973179 78.5973179 0 0 1 658.23913228 80.14660493a78.51879902 78.51879902 0 0 1 51.58685077 137.721974l158.13686147 335.82490362 193.54883986-119.89820607z" fill="#FDD840"></path><path d="M1050.8331274 394.22180104a78.51879902 78.51879902 0 1 1 78.51879903 78.51879903h-1.80593246l-48.05350474 403.97922198c-4.55409058 38.16013652-39.41643684 67.133573-80.79584389 67.13357302H659.02432018C658.47468805 793.25433807 658.23913228 505.32590231 658.23913228 80.14660493a78.51879902 78.51879902 0 0 1 51.58685077 137.721974l158.13686147 335.82490362 193.54883986-119.89820607A78.51879902 78.51879902 0 0 1 1050.8331274 394.22180104z" fill="#FFBE00"></path></symbol><symbol id="toolbar-m-memberhead" viewBox="0 0 1303 1024"><path d="M1062.74839935 433.79527648A78.51879902 78.51879902 0 1 1 1130.58864141 472.74060007h-1.80593246l-48.05350474 403.97922198c-4.55409058 38.16013652-39.41643685 67.133573-80.79584389 67.13357302H320.58871c-41.30088817 0-76.00619753-28.81639958-80.71732499-66.97653526L190.24750358 472.74060007H188.36305226a78.51879902 78.51879902 0 1 1 67.761724-38.86680556l193.31328324 119.81968805 158.13686147-336.06046024A78.5973179 78.5973179 0 0 1 659.47584726 80.14660493a78.51879902 78.51879902 0 0 1 51.58685076 137.721974l158.13686148 335.82490362 193.54883985-119.89820607z" fill="#D6D6D6"></path><path d="M1052.06984238 394.22180104a78.51879902 78.51879902 0 1 1 78.51879903 78.51879903h-1.80593246l-48.05350474 403.97922198c-4.55409058 38.16013652-39.41643685 67.133573-80.79584389 67.13357302H660.26103515C659.71140302 793.25433807 659.47584726 505.32590231 659.47584726 80.14660493a78.51879902 78.51879902 0 0 1 51.58685076 137.721974l158.13686148 335.82490362 193.54883985-119.89820607A78.51879902 78.51879902 0 0 1 1052.06984238 394.22180104z" fill="#C1C1C1"></path></symbol><symbol id="csdnc-upload" viewBox="0 0 1024 1024"><path d="M216.37466416 723.16095396v84.46438188h591.25067168v-84.46438188c0-23.32483876 18.90735218-42.23219094 42.23219093-42.23219021s42.23219094 18.90735218 42.23219096 42.23219021v84.46438188c0 46.64967827-37.81470362 84.46438188-84.46438189 84.46438189H216.37466416c-46.64967827 0-84.46438188-37.81470362-84.46438189-84.4643819v-84.46438187c0-23.32483876 18.90735218-42.23219094 42.23219096-42.23219021s42.23219094 18.90735218 42.23219094 42.23219021zM469.76780906 275.55040991L246.55378774 499.53305726a42.30820888 42.30820888 0 0 1-59.99082735 0c-16.56346508-16.62259056-16.56346508-43.57095155 0-60.19354139L480.51167818 144.38144832A42.21952103 42.21952103 0 0 1 512 131.93984464a42.20262858 42.20262858 0 0 1 31.48409853 12.44160369l293.95294108 294.95806754c16.56346508 16.62259056 16.56346508 43.57095155 0 60.19354139a42.30820888 42.30820888 0 0 1-59.99082735 0L554.23219094 275.55040991V680.92876375c0 23.32483876-18.90735218 42.23219094-42.23219094 42.23219021s-42.23219094-18.90735218-42.23219094-42.23219021V275.55040991z"></path></symbol></svg><div class="notification" style="position: fixed; left:initial; right: 24px; top: 50px; bottom: initial; z-index: 99999;"></div> </body></html>
